-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fixed toolbars change position when navigating between tabs. #4259
Comments
Can you test your project using this code: CSS: http://ugomobi.github.com/fixedtoolbars/css_new06132012.css This includes the changes of PR #4260 from @MauriceG Please confirm if this solves the issues you were having with updatePagePadding. Thanks! |
Sure I will let you know shortly. On Thu, Jun 14, 2012 at 6:45 PM, Jasper de Groot <
|
Unfortunately this still happens with the new files you provided. Ive added On Thu, Jun 14, 2012 at 9:02 PM, Bassam Al Shamali biscim@gmail.com wrote:
|
We need a simple JSBin test page that reproduces the issue for you (on the emulator) and then we test on real device to see if it also happens there. |
Can the content within the JSBin page change. For example, can I add a On Fri, Jun 15, 2012 at 4:52 AM, Jasper de Groot <
|
Hi @balshamali |
Steps to replicate:
I will upload an example sometime soon to show this behavior using the On Fri, Jun 15, 2012 at 10:21 AM, Maurice Gottlieb <
|
You can change anything you want in the JSBin template so it meets your actual use case and reproduces the issue. Same goes for the JSFiddle from @MauriceG. You can clone/fork it and save new version. Just don't change the source of the css and js so it keeps loading latest code. BTW - Based on "the fixed toolbar will rise by the amount of the addressbar" I don't think it is related to the "updatePagePadding" function |
The problem I am talking about it summarized by: and I assumed it was being fixed by the fix provided in: Am I confused? On Sat, Jun 16, 2012 at 4:40 AM, Jasper de Groot <
|
I understand the issue is described by #4259 because the emails you receive and send about this are in fact comments added to the thread there :-) We hoped your issue would be fixed by PR 4260, but - as you noticed - that is not the case. That PR fixed issues with the "updatePagePadding" function and after I looked into your issue again I concluded it is not related to that function. Position fixed means fixed to the viewport. The address bar is part of the window, but not the viewport. See also section 4 here http://developer.apple.com/library/ios/#technotes/tn2010/tn2262/_index.html Looking forward to your test page so we are sure that we are looking at the exact same use case! |
I understand they get posted there but I was just clarifying what we were On Sat, Jun 16, 2012 at 9:00 AM, Jasper de Groot <
|
Reproduction steps:
|
We will test http://jsbin.com/amalez/2/ on a real iPhone running iOS5. Does "second navbar" and "first navbar" mean we actually have to click the link to page 2 in the second (footer) and to page 1 in the first (header) navbar? |
Correct.. first navbar means clicking on page1 and second navbar means clicking on page2. |
@uGoMobi Hi Jasper! But doing the same with page 3 (flip transition), the footer stays like at the screenshot above until the screen is tapped. |
@MauriceG - Hi Maurice, Thanks for testing this! I just noticed that when you navigate from page 3 back to page 1 using the navbar button (flip transition) the footer rises 1px during the transition. (Edit: this was on Safari desktop) |
Dear uGoMobi, again thank you for a quick response! :-) |
Although this is comment is added to an issue with PhoneGap I do see some similarity: #4024 (comment) |
going to look into this one at summit |
I am unable to confirm original issue with latest code at test page at http://jsbin.com/amalez/2 on iphone4 with ios 5.1 following steps to reproduce. will look into issue with footer jumping durring transition. |
For the jumping footer during transition setting the page to position:fixed; bottom:0; fixes this. Tested on blackberry 10 native, jellybean on nexus 7, ics native, ics chrome, blackberry playbook 2.10, iphone4 ios5.1 ipad2 ios5.1. no change except on ios where the issue is fixed. test page at www.jsbin.com/amalez/37 has lots of form elements on page / in footers. |
I wouldn’t believe it if I hadn’t seen it with my own eyes. Flagging this as “in review” for further investigation; looks solid so far. |
Yeah, it's looking like we can close this, but I'll let you all do the honors. Rock solid on iOS6 anyway. |
@arschmitz and I are gonna work this fix into a branch. We’re using |
http://jsbin.com/buqufa/1/ updated to the latest code. |
I believe this is fixed now, but we should test on multiple devices. |
In http://jsbin.com/buqufa/1/ I've slowed down the turn transition, because it looks like, when going from page3 to page1, although the final state is correct, during the transition the footer is still off by an address bar's height. Interestingly this does not happen with the fade transition. |
To see the effect:
At this point, page 1 toolbars appear immediately, and the transition seems to affect only the contents, and the footer is offset. |
Doing external fixed toolbars does not improve things: http://jsbin.com/buqufa/6/ |
So, I would conclude that, yes, it's fixed, but the turn transition could use some improvement. |
The flip transition has the same problem: http://jsbin.com/buqufa/7/ |
All these are tested using BrowserStack/iPhone 4S (iOS5.1), BTW. |
iOS 6 is similarly broken for non-slide transitions. iOS 7 is better, but there's still an offset during the transition. |
iOS 8 has no offsets, but the toolbars blink before the transition starts. |
You get an offset in Chrome Version 39.0.2171.95 (64-bit)/Linux as well. |
I've removed "Platform: iOS" because it's not just iOS. |
FF also has the 1px jump. |
Here's a quick summary of all transitions: http://jsbin.com/fujuhe/3/ |
Transition status (iOS 6 - actual device):
OK, I guess this is not so bad ... OTOH, maybe they're all (except slide) broken, but except for turn and flip the others are not so resource-intensive as to break the display. |
Same status for Chrome/desktop, except there's no flashing. I'd say flip and turn are broken. |
Interestingly, only flip and turn have classes viewport-flip and viewport-turn defined in the CSS. |
OK, "broken" may be a strong word - I mean, the one-pixel shift can only be seen in those transitions AFAICT. |
I have to look into this issue again and read all the comments but I think the cause is the same as what I described here #8264 (comment) |
No longer supported. |
Ive been using the fixed toolbar lately and its great, in most scenarios. However, there is a bug that Ive spent two days trying to figure out and finally found a workaround for the issue.
The testing was done on ios v5 iphone emulator and does not happen by testing in chrome. The fixed toolbar is not quite fixed when navigating between pages using a navbar in the footer. The fixed toolbar changes position if you are on one page, click on the top of the screen to auto-scroll to the top of safari (note this will show the address bar), navigate to another page that is not full (as in the content of the page does not occupy the page height). The footer will rise from the bottom in an amount equal to the height of the address bar. It can be set back to the fixed bottom position by scrolling. I tried to trigger a scroll event every time I switch pages but that doesn't seem to fix the issue.
The workaround i have now is that I have modified the line:
$el.closest( ".ui-page" ).css( "padding-" + ( header ? "top" : "bottom" ), $el.outerHeight() );
in updatePagePadding function in fixedtoolbar implementation to always add enough padding to the bottom to fill the screen enough to push the footer to the bottom of the page. Any feedback would be great. Thanks
The text was updated successfully, but these errors were encountered: