Thanks! On Feb 28, 2011, at 2:32 PM, John LaBanca wrote:
> Heh - I just sent a CL that adds methods to get the maximum > vertical/horizontal scroll position: > http://gwt-code-reviews.appspot.com/1370801/ > > You can wait for GWT 2.3, or you can use the following: > int maxVerticalScroll = scrollPanel.getElement().getScrollHeight() - > scrollPanel.getElement().getClientHeight(); > > Thanks, > John LaBanca > jlaba...@google.com > > > On Mon, Feb 28, 2011 at 4:44 PM, Rob Tanner <caspersg...@gmail.com> wrote: > Hi, > > I have an application where a user needs to read through the a document > displayed in a ScrollPanel() and when they've scrolled all the way through I > want to enable a button that the user can click on to acknowledge that > they've read the document. How can I tell if the user has scrolled all the > way through to the text (scroll bar all the way at the bottom). I can use > getScrollPosition() to get the vertical scroll offset in pixels, but how can > I tell what the max value should be should the documents content be changed? > Or, is there an entirely better way to go about this? > > Thanks, > > Rob Tanner > Linfield College > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.