here you can find an example http://www.mxml.it/index.php/2009/01/11/flex-item-renderers-an-expandable-list-with-transitions/
Quoting djhatrick <djhatr...@yahoo.com>: > Got it, so that's the issue then, how do I know if my itemRenderer > is off the screen so I can reset it's measuredHeight, is there a way > I can find this information out? > > Thanks, > Patrick > > --- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote: >> >> The list always remeasures the renderers. It assigns the .data >> property, sets explicitWidth then calls measure(), then checks for >> explicitHeight then measuredHeight, and that's the height it uses. >> >> But if you can only see three renderers, it will probably create a >> new one for the one just off-screen, but it will re-use the first >> renderer for the fifth row assuming the first row is now >> off-screen. If that renderer still thinks it is in the expanded >> state when it is not representing row 5 which is not expanded, then >> scrolling will be off. >> >> Alex Harui >> Flex SDK Developer >> Adobe Systems Inc.<http://www.adobe.com/> >> Blog: http://blogs.adobe.com/aharui >> >> From: flexcoders@yahoogroups.com >> [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick >> Sent: Friday, October 02, 2009 10:09 AM >> To: flexcoders@yahoogroups.com >> Subject: [flexcoders] Re: variableRowHeight >> >> >> >> OK makes sense, the problem I am having is that if I have 4 item >> renderers, i expand renderers 1,2,3, and if the 4th one is out of >> view.... when I scroll the list it does not work, until I expand >> the 4th item, then the scroll works correctly? >> >> Is there a way to force the list to remeasure the height of all the >> renderers to determine how scrolling works? >> >> Thanks, >> Patrick >> >> --- In >> flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, >> Alex Harui <aharui@> wrote: >> > >> > Remember that renderers are recycled so the size of the renderer >> must be determined from the .data property, it can't just be stored >> in the renderer instance. >> > >> > Alex Harui >> > Flex SDK Developer >> > Adobe Systems Inc.<http://www.adobe.com/> >> > Blog: http://blogs.adobe.com/aharui >> > >> > From: >> flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> >> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On >> Behalf Of djhatrick >> > Sent: Thursday, October 01, 2009 6:19 AM >> > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> >> > Subject: [flexcoders] variableRowHeight >> > >> > >> > >> > I have collapsing/expanding item renderers in a List, all works >> well, but there is a case where the scrolling doesn't work correctly? >> > >> > Is there a way to force the list to measure all of it's item >> renderers correctly please? >> > >> > Thanks, >> > Patrick >> > >> > > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.