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: [email protected] [mailto:[email protected]] On Behalf Of djhatrick Sent: Friday, October 02, 2009 10:09 AM To: [email protected] 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 [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex Harui <aha...@...> 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: [email protected]<mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On > Behalf Of djhatrick > Sent: Thursday, October 01, 2009 6:19 AM > To: [email protected]<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 >

