|
|
@ -9401,12 +9401,15 @@ jQuery.fn.offset = function( options ) { |
|
|
|
do{ |
|
|
|
do{ |
|
|
|
offsetLeft += el.offsetLeft; |
|
|
|
offsetLeft += el.offsetLeft; |
|
|
|
offsetTop += el.offsetTop; |
|
|
|
offsetTop += el.offsetTop; |
|
|
|
|
|
|
|
|
|
|
|
offsetLeft -= el.scrollLeft; |
|
|
|
|
|
|
|
offsetTop -= el.scrollTop; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
el = el.offsetParent; |
|
|
|
el = el.offsetParent; |
|
|
|
} while( el ); |
|
|
|
} while( el ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var elm = elem; |
|
|
|
|
|
|
|
do{ |
|
|
|
|
|
|
|
offsetLeft -= elm.scrollLeft || 0; |
|
|
|
|
|
|
|
offsetTop -= elm.scrollTop || 0; |
|
|
|
|
|
|
|
elm = elm.parentNode; |
|
|
|
|
|
|
|
} while( elm ); |
|
|
|
win = getWindow( doc ); |
|
|
|
win = getWindow( doc ); |
|
|
|
return { |
|
|
|
return { |
|
|
|
top: offsetTop + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ), |
|
|
|
top: offsetTop + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ), |
|
|
|