# textHeight ignoring images

**URL:** <https://forum.kirupa.com/t/textheight-ignoring-images/251469>\
**Category:** flash\
**Created:** [February 8, 2008, 8:15pm UTC](https://forum.kirupa.com/t/textheight-ignoring-images/251469 "2008-02-08T20:15:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoolagon](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@hoolagon](https://forum.kirupa.com/u/hoolagon)\
**Post date:** [February 8, 2008, 8:15pm UTC](https://forum.kirupa.com/t/textheight-ignoring-images/251469/1 "2008-02-08T20:15:14Z")

</div>

Hi,

I have created a dynamic textField called info\_txt in actionscript and am loading css styled txt files into it. I have then added a function which detects weather the loaded text height [info\_txt.textHeight] is greater than the textField height [info\_txt.height]. If it is then my scroll buttons appear, if not they vanish.

This is all working as planned, however there is a problem… If I add images to the external text files they are displayed within the textField, BUT their presence does not in anyway effect the info\_txt.textHeight. Flash seems to just calculate the textHeight regardless of the fact that the images cause the text to be longer.

Does anyone know what I need to do to fix this?

Thanks,

Julian
