Alex,
I appreciate the guidance! I've tried using callLater and it does
seem to help for text-only values of htmltext in a textarea. However,
it still seems to ignore the size of any images regardless of when I
validate and check the textHeight value... Do you know of an example
I can refer to?
Thanks!
-James
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> No, I let it finish the layout at its current shape, then ask for the
> dimensions in a callLater. Invalidating probably won't help. Then if
> you need to adjust, change the size and go through the whole sequence
> again.
>
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of jandersen1978
> Sent: Tuesday, November 20, 2007 1:12 PM
> To: [email protected]
> Subject: [flexcoders] Re: Determining textHeight and textWidth when
> htmlText contains images...
>
>
>
> 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] <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > I use callLater to check after the control has rendered.
> >
> >
> >
> > ________________________________
> >
> > From: [email protected] <mailto:flexcoders%40yahoogroups.com>
>
> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of jandersen1978
> > Sent: Monday, November 19, 2007 8:53 PM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com>
> > 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
> >
>