X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Foffset.js;h=f0adae04d9ceeffd51a2c43963c089e06d5001bf;hb=6141984b7115882cd84cb2cd2cae11de35914775;hp=ef999d8a460f7620c3284f2c6c91a6e0a62a553b;hpb=042e51e731942ee48563e1caccd75d9ce226cf9d;p=jquery.git 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