# Height of a dynamic text box

**URL:** https://forum.kirupa.com/t/height-of-a-dynamic-text-box/158415
**Category:** Uncategorized
**Created:** [August 9, 2005, 4:20pm UTC](https://forum.kirupa.com/t/height-of-a-dynamic-text-box/158415 "2005-08-09T16:20:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jonbid](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jonbid](https://forum.kirupa.com/u/jonbid)
#### Post date: [August 9, 2005, 4:20pm UTC](https://forum.kirupa.com/t/height-of-a-dynamic-text-box/158415/1 "2005-08-09T16:20:31Z")

</div>

I have a text box which loads text from an external \*.txt file. The length of this text will definately change.

However, i need to know how I can measure the height of it so that I can use it in the script I am using. (Claudio’s Scroller). I need the height to be able to calculate the position of which the scrollbar should end.

The problem is that the text box itself changes, “myTextField.autoSize = true;”

Does anybody know how I can get around this problem? I am desperately frustrated, as Claudio’s scroller is the best thing since sliced bread, but altering it to accomodate external txt and adapt to the size of it is a nightmare.

Thanks JB
