From 720ee56ae513cd3404a0d7c3eacd130259f426b1 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Fri, 6 Nov 2009 14:47:38 -0600 Subject: [PATCH] Fix bug introduced in rewrite of Nick's patch. I'm an idiot. --- src/dom/layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {