Skip to content
Permalink
Browse files
core: fixed offset method for FF3 - FF3 seems to have problems report…
…ing the correct values with getBoundingClientRect on the body element
  • Loading branch information
Paul Bakaus committed May 25, 2008
1 parent 042e51e commit 6141984
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit 6141984

Please sign in to comment.