tags:

views:

55

answers:

0

I have a dynamic text control having images inside htmlText.

For e.g

var q_desc:Text = new Text();
q_desc.percentWidth = 100;
q_desc.condenseWhite=true;
q_desc.htmlText ="<b>Q.</b>" + "<p><img height='200' src='../images/xyz.png'/></p>"

The Text control clips the image and only upper portion or sometimes the whole image is not displayed. Text Control's height according to documentation is governed by
when htmlText is used. But in this situation as there are no
so how can we force text control to have height enough to accommodate the images? Any help/direction would be appreciated.