on 02-12-2015 8:56 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.