0

I have a requirement that i want to go to the middle area or bottom area of my scroll panel when I pressed a button ,but not from the scrolling. is it possible to do?..if so how can I reach my goal.

thanks in advance

1 Answers1

0

Use setVerticalScrollPosition() along with getMaximumVerticalScrollPosition() to go to the end. For the middle part you have to calculate things by your own getting clientHeight and scrollHeight of the getScrollableElement().

Andrea Boscolo
  • 3,038
  • 1
  • 16
  • 21