jquery/jquery-mobile — Issue #3416: getTopOffset() should subtract scrollTop not add it.
Author: jblas
Created: 2012-01-11 19:42:39+00:00
State: open

While reading the code for getTopOffset() in jquery.mobile.fixedheaderfooter.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.