diff --git a/src/dom/layout.js b/src/dom/layout.js index 444da63..7f235f4 100644 --- a/src/dom/layout.js +++ b/src/dom/layout.js @@ -756,8 +756,8 @@ // The HTML element on IE < 8 has a 2px border by default, giving // an incorrect offset. We correct this by subtracting clientTop // and clientLeft. - return new Element.Offset(rect.top - docEl.clientTop, - rect.left - docEl.clientLeft); + return new Element.Offset(rect.left - docEl.clientLeft, + rect.top - docEl.clientTop); }, cumulativeOffset: function(element) {