Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabsView top overlay iOS status bar when using tabsHideOnSubPages: true #8956

Closed
resper opened this issue Oct 30, 2016 · 9 comments
Closed
Assignees
Labels
ionitron: v3 moves the issue to the ionic-v3 repository

Comments

@resper
Copy link

resper commented Oct 30, 2016

Short description of the problem:

The TabsView tabs overlap the statusbar on iOS devices.
I tried to add statusbarPadding: true but doesn't help

Steps to reproduce:

  1. Build a app with Tabs
  2. Add 'tabsHideOnSubPages: true'
  3. Run on iOS emulator or phone
imports: [
    IonicModule.forRoot(MyApp,{
tabsPlacement: 'top',
tabsHideOnSubPages: true,
backButtonText: '',
statusbarPadding: true
})
]

Run ionic info from terminal/cmd prompt: (paste output below)

Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
OS:
Node Version: v4.6.0

@manucorporat manucorporat self-assigned this Oct 30, 2016
@jgw96 jgw96 added the v2 label Oct 31, 2016
@Squiggle
Copy link

Squiggle commented Nov 4, 2016

We can also replicate this with a similar setup here. I notice this issue has returned as a regression a couple of times in previous releases...
#6368
#7203
#6496

Can anyone suggest a sensible work-around? Would this be best fixed using plugin cordova-plugin-statusbar?

@ghenry22
Copy link

ghenry22 commented Nov 8, 2016

the same thing happens when opening a page from a modal, nav bar overlaps status bar. Seems like the statusbar padding isn't applied when the page is pushed onto the nav stack from a modal.

Been banging my head on the desk trying to find a way around this, it seems like it just shouldn't be an issue but keeps cropping up.

@kamok
Copy link

kamok commented Nov 18, 2016

Here's a gif of what I have. http://g.recordit.co/vg9rrHtbkq.gif

I'm not even using tabsHideOnSubPages: true, but I'm using hideBackButton="true" on my navbar. Here's what my page looks like:

<ion-header>
  <ion-navbar color="primary" hideBackButton="true">
    <ion-buttons start>
      <button ion-button icon-only navPop clear color="light">
        <ion-icon name="arrow-back"></ion-icon>
      </button>
    </ion-buttons>

    <ion-title>My Account</ion-title>

    <ion-buttons end>
      <popover-nav-button></popover-nav-button>
    </ion-buttons>
  </ion-navbar>
</ion-header>

<ion-content padding>
  <h3>My Account content goes here.</h3>
</ion-content>

Note, that if I set my root to one of the pages on the popover menu, the padding is fine. Only when you push a new page you get it. Also note I'm using the navPop.

Here's my ionic info

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.39
ios-deploy version: 1.9.0
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62

@manucorporat
Copy link
Contributor

@kamok can you provide the repo you are using to reproduce the issue?

@kamok
Copy link

kamok commented Nov 30, 2016

@manucorporat Thanks for you response. I've made a sample repo here. Use ionic emulate ios to see the problem when you click the top right popover and navigate to Page1. Didn't even needed the back button to replicate the issue.

@lostdev
Copy link

lostdev commented Sep 18, 2017

I have this issue as well! Does anyone have a workaround?

@lostdev
Copy link

lostdev commented Sep 18, 2017

@manucorporat any workarounds for this issue? How has this issue been open since October? :(

@adamdbradley adamdbradley added the ionitron: v3 moves the issue to the ionic-v3 repository label Nov 1, 2018
@imhoffd imhoffd removed the ionitron: v3 moves the issue to the ionic-v3 repository label Nov 28, 2018
@Ionitron Ionitron added the ionitron: v3 moves the issue to the ionic-v3 repository label Nov 28, 2018
@ionitron-bot
Copy link

ionitron-bot bot commented Nov 28, 2018

This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!

Thank you for using Ionic!

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 28, 2018

Issue moved to: ionic-team/ionic-v3#137

@ionitron-bot ionitron-bot bot closed this as completed Nov 28, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ionitron: v3 moves the issue to the ionic-v3 repository
Projects
None yet
Development

No branches or pull requests