| Sizing Multi-line text [message #747830] |
Mon, 24 October 2011 06:02  |
Adrian Mouat Messages: 16 Registered: September 2011 |
Junior Member |
|
|
One of my diagram elements takes a multi-line text input. I would like to resize the containing box to the appropriate size for the number of lines.
I thought text.getHeight() might have given the height of the of the text, but it seems to stay the same regardless of the text value.
Do I have to parse the value of the text to count the number of lines to do my resizing or is there a better way? Is there a programmatic way to get the line height?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09019 seconds