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
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
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()
.