Perhaps I was a bit harsh in my initial comment about variableRowHeight :)

I'll certainly try some examples and report back on what works and what
doesn't for me. Maybe I've just always done my custom renderers wrong
somehow for working with variableRowHeight with scrolling.

Doug

On Wed, Feb 4, 2009 at 2:54 PM, Fotis Chatzinikos <
fotis.chatzini...@gmail.com> wrote:

>   Doug,
>
> have you tried adding the following on the textarae? It solves real world
> renderer recycling :-)
>
>
> minHeight="0"                  //to accomodate for really short renderers
> change="invalidateSize()"  //re-measure on text change
>
> when a renderer is recycled new text from the data provider is feed inside
> the textarea, so the change
> event fires which is wired to invalidateSize which in turn calls the
> overriden measure function.
>
> In the measure function, as Alex mentions in another mail do not use height
> but measuredheight instead.
>
> On Wed, Feb 4, 2009 at 11:47 PM, Doug McCune <d...@dougmccune.com> wrote:
>
>>   I've pretty much never been able to use variableRowHeight in a real
>> world scenario. Once you start scrolling with item renderers that need to
>> measure themselves based on data, it all gets completely messed up. I'd love
>> it if someone knew how to get it working all the time (as opposed to only on
>> the first rendering pass). But I've basically resigned myself to the fact
>> that variableRowHeight can't be used.
>>
>> Doug
>>
>>
>>
>> On Wed, Feb 4, 2009 at 1:26 PM, Flap Flap <flapflapl...@kilooctet.net>wrote:
>>
>>>   Hi there,
>>>
>>> Second night that I'm pulling my hairs on this stuff, I'm sure you will
>>> give me some good hints.
>>>
>>> So, I have a custom list item render.
>>> It's a VBOx with a GradientCanvas (width 100%, no height) child that have
>>> a TextArea for child (width 100%, no height).
>>> The GradientCanvas he's a custom component to have a advanced gradient
>>> background.
>>> The problem is one the TextArea.
>>>
>>> Here is the behavior that I'd like to have:
>>>
>>> When text is on several lines, the item renderer should update his height
>>> to match the TextArea height.
>>> At this moment, the TextArea display scrollbars.
>>>
>>> I've try with Label (but no multiline).
>>> With UITextField, but not a mx component...
>>> With Text component but the list act weird with this one...
>>>
>>> Can you point me to some clues ?
>>>
>>> thx
>>>
>>> BenoƮt Milgram / Flapflap
>>> http://www.kilooctet.net
>>>
>>> I'm also a music mashup / bootlegs producer :
>>> http://www.djgaston.net
>>>
>>
>>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@gmail.com,
>  
>

Reply via email to