When scrolling my custom item renderer, which inherits from ItemRenderer, i
notice significant performance problems, when scrolling the list. It seems like
the list's layout is invalidating the component when the list is scrolled.
I configured the list's layout with the following parameters:
<s:VerticalLayout gap="0" horizontalAlign="contentJustify" paddingBottom="0"
paddingLeft="0" paddingRight="0" paddingTop="0" rowHeight="82"
useVirtualLayout="true", variableRowHeight="false" />
I also overwrote the renderer's measuredWidth and measuredHeight properties:
override public function set measuredHeight(value:Number):void
{
height = super.measuredHeight = value;
}
override public function set measuredWidth(value:Number):void
{
width = super.measuredWidth = value;
}
The question for me now popping up is, how to avoid those unnecessary
invalidation cycles? I'd expect the layout to be at least as smart as handling
size changes only when the item renderer's owner changes it's width, since the
rowHeight is set.
Best regards