This link has been bookmarked by 6 people . It was first bookmarked on 20 May 2008, by ratbeard.
-
22 Apr 10
-
08 Sep 09
Bruno FerreiraGetting absolute coordinates from a DOM element
-
Problem is, it's very important to get those coordinates for applications such as drag and drop, or whenever you need to compare coordinates of elements that may be in completely different parts of the document.
-
but it proved to be one of the most difficult problems we had to solve.
-
every single browser has its own coordinate quirks
-
We also had to implement a pretty complex test suite to verify our algorithms for thousands of combinations of block or inline elements, offsets, scroll positions, frame containment, borders, etc.,
-
-
12 Jul 08
-
20 May 08
-
12 Feb 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.