1 Reply Latest reply on Jul 19, 2007 2:19 PM by andythehotty

    verticalScrollPosition not updating List

    andythehotty
      Has anyone else encountered weirdness when manually adjusting the selectedIndex and verticalScrollPosition of a List component? When I adjust them to the same value the correct item is selected and the verticalScrollPosition is indeed updated, however, the list of items still begins from the beginning of the list, so the list is offset. If I scroll up it is blank. After scrolling up, however, it will begin to correct itself as it redraws. I'm not sure why it is doing this or how I can fix it. I know flex 1.5 had a redraw method, but I don't see anything like that in the 2 docs.
        • 1. Re: verticalScrollPosition not updating List
          andythehotty Level 1
          So it must have something to do with the fact that I was updating the dataProvider immediately before changing the verticalScrollPosition. I'm still not sure what is going on, but I simply did a callLater on the List wherein I updated the verticalScrollPosition and that seems to work fine. However, if anyone from Adobe is listening, this seems like a bug needing resolving for feature versions.