Comments (11)
The problem is that IE starts its window at 2,2 rather than 0,0
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/getboundingclientrect.asp
Reported by gwt.team.ecc
on 2006-09-25 14:16:20
from gwt.
Fixed by added -2 to getAbsoluteLeft and getAbsoluteTop
Reported by gwt.team.ecc
on 2006-09-26 18:31:23
from gwt.
Reported by gwt.team.ecc
on 2006-09-26 18:31:47
- Status changed:
FixedNotReleased
from gwt.
I am not sure that this is correct fix.
1. I use IE6 and problems in MSDN tells that (2,2) is reported on IE5
2. Different is not (2,2), but (0,20).
Reported by Konstantin.Scheglov
on 2006-09-29 08:22:42
from gwt.
The implementation of getAbsoluteLeft had already changed before this bug was looked
at. By the time this bug was repro'd, the tests were only 2 off. I would be very
curious if the following fix, patched into DOMImplIE6, does not work for you.
public native int getAbsoluteLeft(Element elem) /*-{
// Offset needed as IE starts the window's upper left as 2,2 rather than 0,0
return elem.getBoundingClientRect().left - 2;
}-*/;
Reported by gwt.team.ecc
on 2006-10-09 11:31:37
- Labels added: Milestone-1_2_Final
from gwt.
Minor detail, shouldn't it be Milestone-1_2_RC?
Reported by ismaelj
on 2006-10-20 01:22:22
from gwt.
Reported by gwt.team.bruce
on 2006-10-23 16:27:38
- Labels added: Milestone-1_2_RC
- Labels removed: Release-1.1.10, Milestone-1_2_Final
from gwt.
Reported by gwt.team.jgw
on 2006-10-31 17:00:26
- Status changed:
Fixed
from gwt.
Just for future reference, it appears that the (2, 2) offset can be found in the
clientLeft/clientTop on the documentElement (standard mode) or body (quirks mode)
element.
In other words either in standard mode:
$doc.documentElement.clientLeft == 2
$doc.documentElement.clientTop == 2
And in quirks mode:
$doc.body.clientLeft == 2
$doc.body.clientTop == 2
Reported by fredsa
on 2007-03-06 19:52:43
from gwt.
Reported by [email protected]
on 2008-05-02 02:32:22
from gwt.
Reported by [email protected]
on 2011-02-09 00:10:59
- Labels added: Milestone-1_2-RC
- Labels removed: Milestone-1_2_RC
from gwt.
Related Issues (20)
- SDM BindException: Address already in use
- GWT compiling issue in java 11 HOT 2
- Spurious incremental CompilerTest failure
- GWT 2.11 and Jetty 9.4.54.v20240208 error running in IntelliJ 2024.1 Ultimate HOT 3
- SDM (Super Dev Mode) does not work with a strong CSP (Content Security Policy)
- Draft compile with compiler.stackMode=strip seems to break stack trace deobfuscation with sourcemaps HOT 1
- Upgrade to HtmlUnit 3.9.0 or 4.1.0 HOT 2
- Upgrade icu4j to a version > 63.1
- Memory leak in stored exceptions HOT 8
- Issue with com.google.gwt.i18n.client.TimeZone in GWT 2.11 for Africa/Cairo Time Zone HOT 4
- Add Java 9 BigInteger methods sqrt and sqrtAndRemainder
- GWT from 2.9 to 2.11 Migration Issue Could not find com.google.gwt:gwt-codeserver:2.11.0. HOT 1
- Remove onLoadErrorFn/onPropertyErrorFn, or make them easier to disable
- Upgrading to GWT 2.10.1 is causing IncompatibleRemoteServiceException HOT 1
- GWT Issue with JDK 17 HOT 1
- Whitespace check inconsistency HOT 2
- closure-compiler build requires extra annotations to scan classes HOT 1
- Annotating an interface method with @JsProperty can produce runtime errors if jsinterop exports are not enabled
- java.lang.Math is missing nextUp, nextDown, nextAfter emulation
- Upgrade from gwt 2.0.0 to 2.11.0 erroring out HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt.