Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
GWT getAbsoluteLeft/Top incorrect in Chrome 61 #9542
GWT version: 2.8.0
GetAbsoluteLeft/GetAbsoluteTop are incorrect.
This is largely hidden in a variety of browsers:
Firefox overrides these with the standard behaviour:
which looks at the body element which in Chrome 61 is incorrect. It is somewhat correct for < 61.
Steps to reproduce
Just look at the code :-)
The standard base really should be looking at document.scrollingElement and if it is defined use that as the element to read the scrollLeft/Top from.
Links to further discussions
For googlers: b/63125202
Would you like please to provide a date when you gonna release that fix? Chrome's stable channel was updated to 61.0.3163.91 Thursday, September 14, 2017, which has broken some GWT widgets (PopupPanel, ...) which still rely on the body scrollTop to do some position calculation.
If you are using a version lower than 2.8 then
Hope this can help
Thank you ahmadseder !
==== EDIT START =====
Our guidelines are outlined in .
No, we only support the latest version.
Classpath shadowing is indeed a (fragile) possibility:
I'm afraid we don't have anything better to offer.
@tbroyer I followed your suggestion but I am a bit stuck.
When I define my .gwt.xml file all source is supposed to be a descendent from the directory where this file is located.
Hello, i have a workaround, i call this after updating popup position :
i use GWT 2.6.1.
added a commit
Oct 19, 2017
@guibertjulien Unfortunately, your workaround seems to work only if the popup widget is visible when the page loads.
For the widgets that are not visible, that you have to scroll down to see, it still won't work :(
Yes, but updating the GWT framework is not such an easy task, unfortunately. Everything needs to be re-tested and a lot of bugs could occur (well, it depends on how well the app was written, right?). I wouldn't go through this just for some info tool-tip buttons...
I also did the cherry pick for 2.7.0.
Then I compile and use in my own project(I've excluded the official 2.7.0 version). I find it still doesn't fix the problem.
When I call label.getAbsoluteTop(),
In my chrome v60, it returns constant value no matter I scroll or not.
In chrome v63, it returns dynamic value.
I'm expecting it returns a constant value (absoluteTop should be the value from document root), am I right?