Fix for issue #3416 - getTopOffset() should subtract scrollTop not add it.

- Modified private utility function getTopOffset() so that it subracts scrollTop from top instead of adding it.
This commit is contained in:
jblas@adobe.com 2012-01-11 11:44:58 -08:00
parent ff9b742723
commit 86f74cbe39

View file

@ -200,7 +200,7 @@ $.mobile.fixedToolbars = (function() {
top = ele.offsetTop;
while ( ele && ele != body ) {
top += ele.scrollTop || 0;
top -= ele.scrollTop || 0;
if ( ele == op ) {
top += op.offsetTop;