Hi Jeff, I did try to use it, but I still need to know the position of the element I want the popup to appear below. It's when I try to find this position that the problem arises (due to scrolling apparently not taken into account).
-- Tanguy 2010/9/6 Jeff Chimene <jchim...@gmail.com> > On 09/05/2010 04:53 PM, Tanguy Le Barzic wrote: > > Hi Thomas, > > > > Thanks for your answer. I tried your solution, with the exact same > > results :(. > > I think the problem comes from Window.getScrollTop() (which is used > > in position(final UIObject relativeObject, int offsetWidth, > > int offsetHeight) ). This function always return 0 in Firefox, > > even when I scroll the page. > > > > I managed to fix it by using the following custom javascript native > > function : > > > > public final native int getScrollTop() /*-{ > > return $wnd.pageYOffset; > > }-*/; > > > > However, I'm afraid it won't be cross-browser. Could it be a bug in the > > implementation of Window.getScrollTop() for Firefox (at least for the > > version I'm using, 3.6.8) ? > > > > -- > > Tanguy > > Why aren't you using setPopupPositionAndShow() ? > > -- > 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-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@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-tool...@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.