diff options
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/offset.js b/src/offset.js index 4352a9995..08a4543e4 100644 --- a/src/offset.js +++ b/src/offset.js @@ -134,11 +134,8 @@ jQuery.fn.extend( { } // Add offsetParent borders - // Subtract offsetParent scroll positions - parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ) - - offsetParent.scrollTop(); - parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ) - - offsetParent.scrollLeft(); + parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); + parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); } // Subtract parent offsets and element margins |