jquery/jquery-mobile — pull request #3050 by frequent (2011-11-15 11:51:58+00:00)
Title: proposed fix #2646 - fixed footer flickers to the top when switching pages

also see my comment in #2646.

The problem should be with _thisCSStop_

Two scenarios:
(a) document size = 2000px, screenHeight is 500px
thisCSStop/fix-footer position will more or less equate to -(2000px-500px) = **-1500px**.
So to show the footer it's pulled up from css.top=0 to top=-1500px, and **to hide it's pushed down to top=0**

(b) document size is 100px, screenHeight is 500px
thisCSStop/fix-footer position will be -(100px-500px) = **+400px**.
The problem is on **hiding**, because **pushing down to top=0 in fact kicks the footer up to the end of the document**. On the second run of hide() it then works correclty. There's the jumping.

To fix this I include _thisCSStop > 0 && immediately != true_ in the if-clause. Otherwise the fixed-footer with top>0 will not pass. To hide the footer you can only make it jump even higher and kick it out of view on top by setting top=-thisCSStop. Awkward... but should work. Looks fine on iPad and desktop.