So are you thinking of using callLater from within a creation 
complete handler that would then call invalidateSize which would 
kick off the measure method which would then have the appropriate 
textHeight available?

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I use callLater to check after the control has rendered.
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of jandersen1978
> Sent: Monday, November 19, 2007 8:53 PM
> To: [email protected]
> Subject: [flexcoders] Determining textHeight and textWidth when 
htmlText
> contains images...
> 
>  
> 
> I'm trying to build a text component that will dynamically size its
> height based on the textHeight property after its htmlText 
property is
> set. However, it appears that the textHeight property doesn't 
include
> the height of images loaded into the component. e.g. comparing the
> textHeight of components displaying a string of HTML--one with an
> image and the other without--yields the same values...
> 
> Anyone know how to reliable guage how large the content of a text
> component is when using htmlText with images?
> Thanks!
> --James
>


Reply via email to