ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Footer Visible During Navigation Transition

Open saniyusuf opened this issue 10 years ago • 17 comments

I have a footer placed in a View I am navigating into. As soon as I start the navigation, the footer in the view being pushed to is seen even before the transition has ended. So you have a case where the footer is seen for some few milliseconds then the body in the header and content is then seen. See URL below for GIF

http://www.giphy.com/gifs/3oriNV1H6FAxdo5co8

Below is my Ionic Infor result. Your system information:

Cordova CLI: 6.3.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.1.0 Ionic App Lib Version: 2.1.0-beta.1 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v5.10.1 Xcode version: Xcode 7.3 Build version 7D175

saniyusuf avatar Oct 19 '16 15:10 saniyusuf

Can you share some code to reproduce the issue?

manucorporat avatar Oct 21 '16 21:10 manucorporat

The same problem here in iOS mode.

infinnie avatar Oct 24 '16 06:10 infinnie

@manucorporat I think that the link above to the GIF image illustrated the problem well.

infinnie avatar Oct 24 '16 06:10 infinnie

Well, there are many issues to be fixed, a lot of them are not real bugs but using the API incorrectly. I still have to reproduce the issue to fix it, illustrate is not enough.

Some source code to reproduce it will increase the chances to get this solved as soon as possible.

manucorporat avatar Oct 24 '16 07:10 manucorporat

I'm seeing the same thing after upgrading from beta 11 to rc1.

To reproduce:

Navigate from a page to another page using NavController. Destination page should use this template.

<ion-header>
    <ion-navbar color="brand">
        <ion-title>Footer Transition</ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    Content
</ion-content>

<ion-footer>
    This is visible during nav.push(Page) transition
    and does not disappear until transition has completed
</ion-footer>

EDIT: I think it's some kind of z-index issue. If I navigate to yet another page, from the page that has a footer, the transition looks okay forward and back. It seems to be a problem only if you navigate "back/up" the component tree, if that makes any sense.

EDIT 2: Is only an issue in iOS mode

biesbjerg avatar Nov 02 '16 19:11 biesbjerg

Same issue reported herr: https://github.com/driftyco/ionic/issues/9121

biesbjerg avatar Nov 15 '16 23:11 biesbjerg

Try to wrap your code inside the ion-footer in a ion-toolbar, just like this:

<ion-header>
    <ion-navbar color="brand">
        <ion-title>Footer Transition</ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    Content
</ion-content>

<ion-footer>
    <ion-toolbar>
        This is visible during nav.push(Page) transition
        and does not disappear until transition has completed
    </ion-toolbar>
</ion-footer>

joaoveiga avatar Dec 09 '16 14:12 joaoveiga

@manucorporat I can also see this problem with search bar inside a header. Should I open new task?

royipressburger avatar Dec 12 '16 06:12 royipressburger

Similar issue here https://github.com/driftyco/ionic/issues/9606

dylanvdmerwe avatar Dec 13 '16 10:12 dylanvdmerwe

A user has submitted a PR that should fix this issue here https://github.com/driftyco/ionic/pull/9597 . I will test this PR.

jgw96 avatar Dec 16 '16 23:12 jgw96

big thanks @lh4111!

jgw96 avatar Dec 16 '16 23:12 jgw96

It seems wrapping things into a <ion-tooblar> is indeed a workaround. I additionally needed to remove the padding of the <ion-toolbar>

.no-padding {
  padding: 0;
}
<ion-footer>
  <ion-toolbar class="no-padding">
    <!-- animated footer content here -->
  </ion-toolbar>
</ion-footer>

Flixt avatar Jan 26 '17 15:01 Flixt

Hello all! After some thought, we are going to close this issue as an ion-footer should always have its contents wrapped in an ion-toolbar. Thanks for using Ionic!

jgw96 avatar Jun 23 '17 16:06 jgw96

still have the issue even ion-toolbar added

haifzhan avatar Jun 14 '18 19:06 haifzhan

Still seeing it even with ion-toolbar as well. Tried removing the padding too but no luck.

aoe2rtw2 avatar Jun 21 '18 04:06 aoe2rtw2

Adding a div wrapper right after ion-footer tag helped me

mishanya14228 avatar Aug 13 '18 13:08 mishanya14228

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 12 '18 14:09 ionitron-bot[bot]