Hi there
I'm using autosize to set the size of a textfield, but it is displaying some strange behaviour: although the textfield IS resized and the text is shown, the background is not adjusted to its size.
This wouldn't be much of a problem, but when I try to access its "height", the value returned is that of the background, and not the entire text. I was trying to use this value to stop downscrolling when the text reaches the end. If I change the text size, the background is also resized, but still doesn't match. Any thoughts?
Here's the code for the textbox:
Code
<plugin name="m_desc-box" url="plugins/textfield.swf" alpha="0.7"parent="m_desc-stubParent"visible="true"align="lefttop" width="200" autosize="left"wordwrap="true"y="0"background="true"
css="data:m_desc-textCSS"html="data:m_desc-roomDescription"zorder="1"/>
And a couple of example results:
Values traced:
get(plugin[m_desc-box].height) = 289
stageHeight = 500
Values traced:
get(plugin[m_desc-box].height) = 124
stageHeight = 500
Thanks
Manuel