-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fixed footer flickers to top when switching pages (iOS) #2646
Comments
Some further input: I've observed this when using the fixed/persistent footers in desktop browsers (Chrome/FF) as well. May need to take a look at tweaking the fixHeaderFooter plugin. Here's the above test case on jsFiddle: http://jsfiddle.net/QqdjX/1/show/ in case you'd like to take a quick look at whats happening. Curiously, it looks like it may be the switch to pages with a different minimum height thats causing this behaviour :) Some side comments: I may be the only one that thought this, but at the moment I see a lot of people implementing fixed position toolbars with jQuery mobile where the idea is to have the same navigation 'persist' across each page/view. Rather than requiring duplicate markup (as per the above) for each instance of the nav, would it make sense to consider offering a way to just define such a navigation once and then have it properly persist without being affected by the overall CSS properties of the current page being viewed? Just an idea. |
I have the exact same problem. |
BTW: there seems to be some nice implementation hint mentioned here: |
I think I found the cause for the jumping. It is the fixedToolbar function and only happens when the page height is smaller then the screen height. The problem is with thisCSStop Two scenarios: (b) But if document size is 100px and screenHeight is 500px, thisCSStop and 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. I tried to fix like this:
Should work. |
Just tested with latest and iOS5 and I believe this is fixed now as it works beautifully for me when testing: @toddparker I think we can close... Anne |
It was a bug in the old fixed toolbar behavior, which was replaced in JQM RC 1.1. So I guess this really can be closed :-) |
Yep, closing since the new 1.1 fixed bars will solve this. |
On iPhone, when you have a persistent fixed footer and you switch pages, the footer briefly jumps to the top of the page and then jumps back down to its proper place after the new page loads.
Here is a simple test case:
The text was updated successfully, but these errors were encountered: