From: Paul Bakaus Date: Sun, 25 May 2008 13:18:01 +0000 (+0000) Subject: core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=6141984b7115882cd84cb2cd2cae11de35914775;hp=042e51e731942ee48563e1caccd75d9ce226cf9d;p=jquery.git core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct values with getBoundingClientRect on the body element --- 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