# textField.\_height = The Devil™

**URL:** <https://forum.kirupa.com/t/textfield--height-the-devil/241171>\
**Category:** flash\
**Created:** [October 10, 2007, 5:55pm UTC](https://forum.kirupa.com/t/textfield--height-the-devil/241171 "2007-10-10T17:55:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greatbigbrain](https://avatars.discourse-cdn.com/v4/letter/g/3be4f8/32.png) [@greatbigbrain](https://forum.kirupa.com/u/greatbigbrain)\
**Post date:** [October 10, 2007, 5:55pm UTC](https://forum.kirupa.com/t/textfield--height-the-devil/241171/1 "2007-10-10T17:55:31Z")

</div>

Dear friends/people who would like to prevent the hair on my head from meeting an untimely fate,  
I can’t tell you the # of times I’ve had to do this, but I can tell you it’s the same # of times that I’ve given up on trying to solve it…

- textfield on stage (text\_txt), height is whatever the default height is for the font size (let’s say 16 pixels).
- XML loads, populates the textfield with some crap, and the textfield resizes vertically (let’s say to 100 pixels).
- i trace out the height of the textfield (text\_txt.\_height) _or_ the height of the text (text\_txt.textHeight) but get the default values (16 pixels or whatever). i rage.
- then i try text\_txt.watch(“text”, checkHeight);
- checkHeight basically traces text\_txt.\_height and text\_txt.textHeight;
- same results, even though this is happening _after_ the textfield’s contents have changed! i rage.

my question: how on earth do i get the height of a textfield _after_ it has been autosized (presumably this is what .watch above should be giving me?)?!? can this be done w/o resorting to some onEnterFrame madness to watch for an increase in height?

please oh please oh please help.

thanks and a good day to you.

- steve
