-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Removing page affects header #7995
Comments
@mdgross thank you for reporting this. removing the first page is not supported this will defiantly break navigation. Closing as not a bug. |
@mdgross i was really jus commenting on what you said because your fiddle does not work because the resources are blocked from loading so i cant view your example please use are jsbin template at http://jsbin.com/ofuhaw/1/edit but either way what your doing is 100% not supported.
|
First of all, jQuery Mobile is a team/contributors effort. Even if this was an actual regression, it has nothing to do with who is project lead. When you inspect your test page you'll see that the padding-top is removed from the page when you remove the first page. Probably because we had to make a change between 1.4.3 and 1.4.5 to fix an issue with page padding or fixed headers. Like @arschmitz said removing the first page is currently not supported. If you want to do it anyway you have to understand that your code might break, even in a maintenance release. We don't test it. |
I just bumped into the same issue and did a little debugging. It seems like that commit 3efe6fe caused the issue. The problem is with the Simply assigning I'm running tests at the moment, will submit a pull request soon. |
@solymosi looks like your PR was merged but it won't be released until v1.5. Is there a fix that we can use for the time being? For now I'm using fix from @mdgross but this doesn't work:
|
@wakiki I posted an alternate workaround that may be of interest #3249 (comment) |
It seems that calling $.mobile.firstPage.remove() is removing .ui-page-header-fixed and padding-top from the active page. This was working all the way up to 1.4.3. The problem started occurring in 1.4.4 and 1.4.5.
1.4.5 - Broken
http://jsbin.com/docona/1/
1.4.3 - Working
http://jsbin.com/docona/2/
The text was updated successfully, but these errors were encountered: