Skip navigation
Currently Being Moderated

scroll specific child into view

Jul 15, 2013 2:08 AM

Tags: #flex4 #scrollable #scrolling_problems

I had aleady post the issue in stackoverflow, here is the link: http://stackoverflow.com/questions/17649959/scroll-specific-child-into -view

 

Addition: there is any relationship between contentHeight, maxVerticalScrollPosition, height?

 
Replies
  • Currently Being Moderated
    Jul 15, 2013 5:35 PM   in reply to jasonzhuang

    Even my outlook email client won't let me scroll the last line of this thread to the top.  That's because there is a relationship between contentHeight, maxVerticalScrollPosition and height.

     

    If you add more empty space to the content, then you would be able to scroll the last child to the top of the viewport because maxVerticalScrollPosition would reflect that larger contentHeight.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 15, 2013 8:14 PM   in reply to jasonzhuang

    The equation is roughly maxVSP=contentHeight – widget.height.  There's more to it that factors in borders, padding, horizontalScrollBar, etc, but that's the basics.  If you got 900, then the control's viewport is about 300 pixels in height.

     
    |
    Mark as:

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