# \[AS3\] TextField height

**URL:** <https://forum.kirupa.com/t/as3-textfield-height/209175>\
**Category:** flash\
**Created:** [December 6, 2006, 4:17pm UTC](https://forum.kirupa.com/t/as3-textfield-height/209175 "2006-12-06T16:17:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanLiu](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ianliu/32/3068_2.png) [@IanLiu](https://forum.kirupa.com/u/IanLiu)\
**Post date:** [December 6, 2006, 4:17pm UTC](https://forum.kirupa.com/t/as3-textfield-height/209175/1 "2006-12-06T16:17:57Z")

</div>

How do I predict the TextField height? When I initiate one, it comes with 100 height, but I want to set it to the fonts height.

I have tried the autoSize, but some times it shrinks the text field to a very tiny one, and some times it stays at fonts height, but I can’t set its width anymore…

Is there a solution to this problem?

Thanks,  
Ian Liu.
