mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct values with getBoundingClientRect on the body element
This commit is contained in:
parent
042e51e731
commit
6141984b71
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user