Giter Club home page Giter Club logo

Comments (11)

dankurka avatar dankurka commented on July 16, 2024
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.

dankurka avatar dankurka commented on July 16, 2024
Fixed by added -2 to getAbsoluteLeft and getAbsoluteTop

Reported by gwt.team.ecc on 2006-09-26 18:31:23

from gwt.

dankurka avatar dankurka commented on July 16, 2024

Reported by gwt.team.ecc on 2006-09-26 18:31:47

  • Status changed: FixedNotReleased

from gwt.

dankurka avatar dankurka commented on July 16, 2024

  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.

dankurka avatar dankurka commented on July 16, 2024
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.

dankurka avatar dankurka commented on July 16, 2024
Minor detail, shouldn't it be Milestone-1_2_RC?

Reported by ismaelj on 2006-10-20 01:22:22

from gwt.

dankurka avatar dankurka commented on July 16, 2024

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.

dankurka avatar dankurka commented on July 16, 2024

Reported by gwt.team.jgw on 2006-10-31 17:00:26

  • Status changed: Fixed

from gwt.

dankurka avatar dankurka commented on July 16, 2024
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.

dankurka avatar dankurka commented on July 16, 2024

Reported by [email protected] on 2008-05-02 02:32:22

from gwt.

dankurka avatar dankurka commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.