Commit 6141984b authored by Paul Bakaus's avatar Paul Bakaus

core: fixed offset method for FF3 - FF3 seems to have problems reporting the...

core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct values with getBoundingClientRect on the body element
parent 042e51e7
...@@ -14,7 +14,7 @@ jQuery.fn.offset = function() { ...@@ -14,7 +14,7 @@ jQuery.fn.offset = function() {
fixed = css(elem, "position") == "fixed"; fixed = css(elem, "position") == "fixed";
// Use getBoundingClientRect if available // Use getBoundingClientRect if available
if ( elem.getBoundingClientRect ) { if ( !(mozilla && elem == document.body) && elem.getBoundingClientRect ) {
var box = elem.getBoundingClientRect(); var box = elem.getBoundingClientRect();
// Add the document scroll offsets // Add the document scroll offsets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment