Skip to content
Permalink
Browse files
Fixed #2064
  • Loading branch information
brandonaaron committed Dec 17, 2007
1 parent 13a5fdb commit d7f5a0835bc463d15a4f6210e48110054a050f0b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/offset.js
@@ -72,7 +72,7 @@ jQuery.fn.offset = function() {
// Safari <= 2 doubles body offsets with a fixed position element/offsetParent or absolutely positioned offsetChild
// Mozilla doubles body offsets with a non-absolutely positioned offsetChild
if ( (safari2 && (fixed || jQuery.css(offsetChild, "position") == "absolute")) ||
(mozilla && jQuery.css(offsetChild, "position") != "absoltue") )
(mozilla && jQuery.css(offsetChild, "position") != "absolute") )
add( -doc.body.offsetLeft, -doc.body.offsetTop );

// Add the document scroll offsets if position is fixed

0 comments on commit d7f5a08

Please sign in to comment.