I can't post an example at the moment but I'll try to tonight.

I've traced the measuredMinHeight and the unscaledHeight in measure and
updateDisplayList and both are called several times. The unscaled height is
always less than the minHeight.

This isn't actually measuring the loaded image content. An ImageVO is passed
to the component with height and width properties. The height and width are
then worked out form this ratio to make sure the image fits properly.

Giles.

On Wed, Feb 20, 2008 at 8:45 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>    Can you post a mini-example?  Are you sure the measure() sets
> measuredHeight to 200 every time?  Sometimes on the first call, the image or
> TextField can have the wrong height.
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Giles Roadnight
> *Sent:* Wednesday, February 20, 2008 12:23 PM
> *To:* [email protected]
> *Subject:* [flexcoders] measure(), measuredMinWidth and unscaledWidth
>
>
>
> Hi All
>
> I have a renderer that is showing an image and a textInput in a tileList.
> The measure function adds the height of the textField to the height of the
> image and the margin to get a value of around 200 pixels. The
> minMeasuredHeight and measuredHeight are both set to 200.
>
> When the updateDisplayList function is called the unscaledHeight is less
> than this - about 170 so the text field drops off the bottom of the
> renderer.
>
> This is when I am adding the first item to the tileList and
> variableRowHeight is set to true anyway.
>
> I can't understand why Flex is trying to squach these renderers. Any
> ideas?
>
> Thanks
>
> --
> Giles Roadnight
> http://giles.roadnight.name
>   
>



-- 
Giles Roadnight
http://giles.roadnight.name

Reply via email to