flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Do ItemRenderer's get reused across different components?
Date Tue, 25 Oct 2016 18:30:32 GMT
Are you setting columnWidth?  If not it could get recalculated and if a
renderer reports a different size now that it is full of content, you
might get different results.


On 10/25/16, 11:04 AM, "Kyle McKnight" <kamcknig@gmail.com> wrote:

>I have a List, ParentList, that has a VerticalLayout. Within ParentList is
>another List, ChildList with a TileLayout.
>During points in my application, ParentList gets updated which then also
>means ChildList gets updated. What is weird is that the same ChildList
>show different sizes of the children randomly when I leave and come back
>the the page.
>So let's say I set the selected index on ParentList to index 5. ChildList
>gets updated with a subset of data, arbitrarily DataA...DataN. Each
>renderer in ChildList will be width X. But then I set ParentList to index
>and then later back to 5. So viewing the same set of data, DataA...DataN,
>yet this time the TileLayout will have the children be width Z instead of
>the same width X it was before.
>Sorry if that's confusing lol. Basically the same TileLayout with the same
>data will size taht data differently.
>So this leads me to wonder if renderers are reused even if they are
>contained withing different components as long as they use the same Class
>of renderer? Is this happening because when the data is set on the
>ChildList renderer's I'm not resetting everything to some default state?
>Kyle McKnight
>Senior UI Engineer - Accesso
>602.515.1444 (M)

View raw message