From 6141984b7115882cd84cb2cd2cae11de35914775 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sun, 25 May 2008 13:18:01 +0000 Subject: [PATCH] core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct values with getBoundingClientRect on the body element --- src/offset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offset.js b/src/offset.js index ef999d8..f0adae0 100644 --- a/src/offset.js +++ b/src/offset.js @@ -14,7 +14,7 @@ jQuery.fn.offset = function() { fixed = css(elem, "position") == "fixed"; // Use getBoundingClientRect if available - if ( elem.getBoundingClientRect ) { + if ( !(mozilla && elem == document.body) && elem.getBoundingClientRect ) { var box = elem.getBoundingClientRect(); // Add the document scroll offsets -- 1.7.10.4