What is the width (not textWidth) of the TextArea? If it is narrow, it will affect textHeight. If you look at measurement code in Text.as or in ListItemRenderer.as, you'll see that we fix the width before getting textHeight.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of targetplanet Sent: Wednesday, March 05, 2008 1:08 PM To: [email protected] Subject: [flexcoders] Re: resizing a textArea to fit Text of the container. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Manish Jethani" <[EMAIL PROTECTED]> wrote: > > On 2/28/08, targetplanet <[EMAIL PROTECTED]> wrote: > > > but it seems the textHeight can't be relied on, because it gives me > > crazy numbers that can't be right, like for 3 lines of text it says > > its 250. > > I am using htmlText, so I don't know if that matters. > > Do you have a lot of whitespace before and after those 3 lines of > text? You could set 'condenseWhite' to true, that might help. > > Manish > I have set condenseWhite to true, but it is still returning a ridiculous number: 5 lines of text it says is 510 heigh. I set condenseWhite to false, and it added 20 to the height, so I know the condenseWhite is working some what. I am calling validateNow, so that doesn't seem to be the issue.

