I try to call errMsgPanel.getElement().scrollView(); where errMsgPanel is a FlowPanel, it throws error: NoSuchMethodError:com/google/gwt/user/client/Element.scrollIntoView()V at com.ha........
On Thu, Apr 5, 2012 at 4:25 PM, Jens <[email protected]> wrote: > Have you tried to call errorFlowPanel.getElement().scrollIntoView() ? You > could also set the vertical scroll position on the ScrollPanel to 0 or call > ScrollPanel.scrollToTop(). > > -- J. > > > Am Donnerstag, 5. April 2012 05:29:44 UTC+2 schrieb tong123123: > >> my panel is very long, and I have an FlowPanel for displaying error >> message at the top of the long panel, there is a "search" button at the >> bottom of the page, when user press "search", there is validation and if >> has error, the error is shown on the FlowPanel at the top of page, but the >> page will not automatically jump to the top of the page to let user see the >> error message, I try to use a focusPanel to surrounding the error message >> panel and use focusPanel.setFocus(true) but the page still cannot jump to >> the focusPanel at the top of the page, so any method I can do? >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/PYqESnSsaAsJ. > > 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. > -- 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.
