git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
042e51e
)
core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct...
author
Paul Bakaus
<paul.bakaus@googlemail.com>
Sun, 25 May 2008 13:18:01 +0000
(13:18 +0000)
committer
Paul Bakaus
<paul.bakaus@googlemail.com>
Sun, 25 May 2008 13:18:01 +0000
(13:18 +0000)
src/offset.js
patch
|
blob
|
history
diff --git
a/src/offset.js
b/src/offset.js
index
ef999d8
..
f0adae0
100644
(file)
--- 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