1 person found this helpful
Does List.ensureIndexIsVisible(index) do what you want?
I'm getting this error: "RangeError: Error #1125: The index 0 is out of range 0."
Am I trying to set that too early?
It's in the creationComplete handler of the View, right after list.dataProvider=myData;
Also, what I want to have is the index be top of the list, not just visible.
I'll give that a read when I get home.
I am interested in preserving data between views, for which I generally use the persistSomethingForgotName property, but this time around it's a list with month headings and I wanted to scroll to the current month's heading.
Does the Spark List fire an event when all itemRenderers are created and visible?
I'm trying to find the place where to "ensure is visible" for an item.
I have a list with month headers. I want to scroll to the current month.
PersistenceManager would not help because I want the list to scroll to month-header even on first run.