If this is for List or TileLIst, use Moxie and the dataEffects.

 

Anytime the size of a renderer changes, the list class will re-render
everything on screen and due to recycling will probably switch out the
renderer under transition.

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of jandersen1978
Sent: Thursday, October 18, 2007 8:08 PM
To: [email protected]
Subject: [flexcomponents] Custom ItemRenderer + variableRowHeight +
states + transitions = not working

 

I'm working on a custom item renderer that basically will represent a
title and then in the "details" state will add an extra paragraph of
variable length. I'd like the renderer to adjust to the full height
of the details text and I'd also like to use a resize transition for a
nice smooth effect.

I've got a custom measure method that sets the width of the title and
description text components and then uses the textHeight of each to
set the measuredHeight of the renderer. 

What I've got seems to be working until the I add the resize
transition. When the transitions are added
1) the first time the renderer enters the details state it does seems
to resize correctly and display the full text, however there doesn't
seem to be any transition--the detail text is shown without a change
in size and then a second later the size changes appropriately. (not
quite what I'm going for)
2) when the state is set back to default, the renderer does resize
back to it's original size with a nice smooth transition (good)
3) when the state is then set again back to "details" the details text
is again visible but there is no change in the renderer's size... 

I can post code if that's helpful but I'd just love some general
advice on how to approach this... By the way I'm not scrolling
through the list so I'm assuming the renderer recycling isn't coming
into play here... but maybe that's not a good assumption...

 

Reply via email to