Dynamic Text Box Resize

Alright, this question has been sort of asked, but my case is a tad bit different, as I have searched the forum and haven’t found the right answer.

I need to resize a dynamic text box to its contents. I know about the TextField.autoSize property, but what I need is only a vertical resize, not horizontal. I tried just doing autosize and then setting the width back to the original width, but it didn’t work, and in any case it will most likely make the text malformed. If anybody knows how I can do this it would be great.

Use the object of TextFormat
then use its function getTextExtent
then create the dynamic textfield by using createTextField function and passing the appropriate parameters.

cheers

In the properties panel, set “single line” to “multiline” :wink:

scotty(-:

Hey, I’m not that dumb. I was talking about using the autoSize property, where it resizes both ways :smiley:

Anyway, thanks Harpreet, I’ll try it in a bit.

I didn’t say you’re thumb.
And I was talking about the autoSize property, but if you don’t want advice, leave it.

scotty(-: