johnhpus
13-12-2011 18:03:15
I have a ScrollView widget in my application and would like to set the scroll position to the bottom, rather than starting at the top as it does now, but I can't find any way to do that?
Is there no way to set the scroll position of a scroll view manually?
PS. I tried changing the visibility of ScrollView::getVScroll and ScrollView::notifyScrollChangedPosition, but cannot move the scroll position with those methods.
Edit:
Solution was - ScrollView::setViewOffset
To scroll to the bottom, use a negative value.
Is there no way to set the scroll position of a scroll view manually?
PS. I tried changing the visibility of ScrollView::getVScroll and ScrollView::notifyScrollChangedPosition, but cannot move the scroll position with those methods.
Edit:
Solution was - ScrollView::setViewOffset
To scroll to the bottom, use a negative value.