Skip navigation
Currently Being Moderated

Flex List scroll position with virtual layout and custom itemrenderer

Apr 27, 2012 9:08 AM

Tags: #flex_mobile

In building a mobile app, I have a large list control. The list uses a custom ItemRenderer to display section headers (of a different size) inline.


I'm trying to save and restore the list position as the user moves from one view to another, and it almost works. In fact it does work if I disable useVirtualLayout on the list. But with virtual layout enabled, the list always ends up either to far down or not far enough (depending on the exact method used).


I guess my real question is: why doensn't pulling the value out of list.dataGroup.verticalScrollPosition, saving it, and later putting it back work? I know the content of the list isn't changing.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points