Skip navigation
PacMan___
Currently Being Moderated

Problem with Spark List horizontalScrollPosition

Nov 20, 2012 10:23 AM

Tags: #list #spark #flex4.6 #horizontalscrollposition

Hi,

When I resize the List I cannot update myList.scroller.viewport.horizontalScrollPosition to a larger value than myList.dataGroup.contentWidth. The problem is that the myList.dataGroup.contentWidth hasn't been updated yet.

I'm using the myList.scroller.viewport.addEventListener(Event.RESIZE,updateAfterResize); to try updating the horizontalScrollPosition in a whay that i maintain the same visible item in the list.

 

This problem occurs when the list goes from small to big (x2).

 

Is there an event that is only dispatched after everything in the list is resized, datagroup, scroller, viewport, etc????

 

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