# Dynamic Text Box Resize

**URL:** <https://forum.kirupa.com/t/dynamic-text-box-resize/109193>\
**Category:** Uncategorized\
**Created:** [May 3, 2004, 4:42am UTC](https://forum.kirupa.com/t/dynamic-text-box-resize/109193 "2004-05-03T04:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fubarshibby](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@fubarshibby](https://forum.kirupa.com/u/fubarshibby)\
**Post date:** [May 3, 2004, 4:42am UTC](https://forum.kirupa.com/t/dynamic-text-box-resize/109193/1 "2004-05-03T04:42:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 6:11pm UTC](https://forum.kirupa.com/t/dynamic-text-box-resize/109193/2 "2004-05-05T18:11:07Z")

</div>

Oh, wow that’s perfect. I guess I didn’t even realize what I was testing the autoSize property with wasn’t multiline. Don’t you hate it when you overlook a small detail?

Anyway, thanks for spending the time to help me with this. Now I’ve got to get to work…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2004, 6:20pm UTC](https://forum.kirupa.com/t/dynamic-text-box-resize/109193/3 "2004-05-05T18:20:12Z")

</div>

No problem:thumb:
