diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-25 13:18:01 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-25 13:18:01 +0000 |
commit | 6141984b7115882cd84cb2cd2cae11de35914775 (patch) | |
tree | 7e1c588b05be8c88067088639e932b9832d1a399 /src/offset.js | |
parent | 042e51e731942ee48563e1caccd75d9ce226cf9d (diff) | |
download | jquery-6141984b7115882cd84cb2cd2cae11de35914775.tar.gz jquery-6141984b7115882cd84cb2cd2cae11de35914775.zip |
core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct values with getBoundingClientRect on the body element
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js index ef999d8a4..f0adae04d 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 |