cancel
Showing results for 
Search instead for 
Did you mean: 

TextEdit - change height/rows dynamically

lyubomirlalev
Advisor
Advisor
0 Kudos

Hello colleagues,

We are having a TextEdit in a pop-up dialog and its height needs to be adjusted based on the size of the window (the pop-up dialog). I think this could be achieved by setting dynamically the rows of the TextEdit.
My question is do you know how one of the following could be done, so that the above is achieved:
1) get the window's size (more specifically - the height)

This could help to calculate and set rows for the TextEdit based on the height of the window.

2) set the property "height" so that the TextEdit gets automatically let's say 90% of the window

So far, if the "height" is set to some percentage, the TextEdit's height is not properly treated. It acts as if the "height" property is not working properly, while the "width" property is always treated correctly and it (the "width" property) overwrites the "cols" property of the TextEdit.

3) some other way to get different height of a TextEdit based on the size of the window

Thank you and best regards,

LL

Accepted Solutions (1)

Accepted Solutions (1)

former_member191044
Active Contributor
0 Kudos

Hi Lyubomir,

take a look at my blog. Maybe this works for you too.

--> http://scn.sap.com/community/web-dynpro-java/blog/2015/02/12/dynamic-height-textedithidden-feature

Regards,

Tobias

lyubomirlalev
Advisor
Advisor
0 Kudos

Thanks! It is good now.

Only on Chrome it does not appear as on other browsers, but I should look into this.

Answers (0)