Fix bug introduced in rewrite of Nick's patch. I'm an idiot.

This commit is contained in:
Andrew Dupont 2009-11-06 14:47:38 -06:00
parent c89d6eac95
commit 720ee56ae5

View File

@ -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) {