Hi,

maybe I am just too blind, but I have troubles getting the maximum
scroll position of a ScrollPanel.

Getting the current scroll position is really simple:
myScrollPanel.getScrollPosition();

but - I do not see any possibility to get the maximum scrolling
position in a similar simple manner...
I would expect a simple myScrollPanel.getMaximumScrollPosition() or so...


My code to get the maximum scrolling position (inside a scroll event):

=== snipp ===
public void onScroll(ScrollEvent event) {...

int maximumScrollPosition =
   event.getRelativeElement().getScrollHeight()
   - event.getRelativeElement().getOffsetHeight();

=== snapp ===

But maximumScrollPosition is often not 100% what I want (some pixels
difference).


Any suggestions?


Thanks for your help!


Raphael

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to