-
How to fit text height to textbox??
Hi
I am making something where a user is able to type text into an input box and it is added to the stage inside a movieclip. I then make that movieclip draggable.
Problem is the textbox height is sometimes even double the height of the height of the text inside. I need it to fit tight.
It's driving me mad, please can someone help me.
Thanks
-
Are you using the Text Input component or a textField?
Have you tried textField.autoSize = "left"; after the user has input text?
-
Thanks for you fast reply.
I am using a textfield that i have created using AS. I have set autosize on and it fits perfectly horizontally. But vertically i have the problem. Heres a little example, i have put border to true so you can see : http://www.vision-websites.com/texttest/text.html
Thanks
-
I don't have flash in front of me at the moment so can't test but maybe you just need to set textField.height = textField.textHeight.
-
Tried what you said, but the textbox never seems to get any smaller even when i use a number to set the height.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|