While reading the code for getTopOffset() in jquery.mobile.fixheaderfooter.js I noticed that we are adding op.scrollTop to the top running total when we should be subracting it.
Luckily fixed headers/footers are only allowed in pages which are absolutely positioned at (0,0) within the viewport which means we never see the bug. This may change when we start supporting tablet UI patterns.
Fix for issue #3416 - getTopOffset() should subtract scrollTop not ad…
- Modified private utility function getTopOffset() so that it subracts scrollTop from top instead of adding it.