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

bug: bug: nav-bar leaves empty space on android

Open filipesilva opened this issue 11 years ago • 19 comments

Type: bug

Platform: android 4.x webview

When removing the nav-bar on android, it leaves behind it's empty space. On iOS this does not happen. There's more information in this topic of the forums: http://forum.ionicframework.com/t/trouble-hiding-nav-bar/15552

filipesilva avatar Jan 12 '15 21:01 filipesilva

Also having this issue using the Ionic tabs starter.

christophermiles avatar Feb 17 '15 00:02 christophermiles

Any update on this?

andiCR avatar Mar 18 '15 01:03 andiCR

I tried on the RC0 and it was still there.

filipesilva avatar Mar 18 '15 09:03 filipesilva

Filipe

http://galasanatatiimintale.ro/opciony_opcion

18.03.2015, 12:28, "Filipe Silva" [email protected]:I tried on the RC0 and it was still there.

—Reply to this email directly or .

Fayozjon avatar Mar 25 '15 00:03 Fayozjon

Got the same bug here, any plan on when it could be fixed ?

Aligato avatar Apr 06 '15 16:04 Aligato

Same issue here.

Possible temporary (ugly) workaround for the tabs template:

In style.css:

.tabs-top > .tabs, .tabs.tabs-top {
    top: 0 !important;
}

.has-tabs-top {
    top: 54px !important;
}

ghost avatar Apr 08 '15 09:04 ghost

Bug also in android 5.0.2

jgordor avatar Jun 21 '15 09:06 jgordor

I am having the same issue. both in android and ios. Any update on this issue ? any workaround or fixes on the way ?

default ion tabs location is on bottom. but when configured it like this:

$ionicConfigProvider.tabs.position('top'); 

even iOS devices are showing space on the top tabs.

agupta1989 avatar Jun 25 '15 10:06 agupta1989

Is this still an issue?

mhartington avatar Jul 14 '15 20:07 mhartington

Yes, it's still happening.

I updated ionic, started a new project via ionic start myApp tabs, served it via ionic serve --lab: image

Then I deleted the nav bar code image

And got the empty space image

I then restored the nav bar code, but added hide-nav-bar="true" to the ion-view image

Got the same thing image

filipesilva avatar Jul 15 '15 08:07 filipesilva

Okay, for the deleted nav-bar, not sure if this will be something we will want to fix. For the hide-nav-bar, this we can fix.

I just pushed it to our 1.0.2 branch. https://github.com/driftyco/ionic/commit/7e4fb159d3a1119424762000f5b22509abd58720

Until it is released, I suggest you take that code and just throw it in your sass file.

mhartington avatar Jul 20 '15 18:07 mhartington

Works for me. Thanks!

filipesilva avatar Jul 20 '15 18:07 filipesilva

Great ! Thank You :)

agupta1989 avatar Jul 20 '15 18:07 agupta1989

Hmm, in this case, I'm not sure what we can do. Since the nav-bar isn't really in the DOM, there isn't anything we can really go off of from here.

We would have to write a directive to see if there is a nav-bar in the DOM, if not, add a class to ion-tabs, which I'm not opposed to. Will mention it perry and the team tomorrow

mhartington avatar Sep 07 '15 23:09 mhartington

This fix causes trouble on my project, try this codepen adding and removing tabs-top class from the tab bar.

luca3m avatar Sep 21 '15 12:09 luca3m

This happens in v2 also. (On android 4)

jmsherry avatar Nov 18 '15 03:11 jmsherry

hello all! Are you still having this issue? Thanks!

jgw96 avatar Apr 21 '16 17:04 jgw96

Hello! As it has been a little while since there was any activity on this issue I will be closing it. Thanks for using ionic!

jgw96 avatar Apr 26 '16 14:04 jgw96

I've recently found this issue on Ionic version: 1.3.1 (released 2016-05-12), it show up only on ios 9.1 on iphone 6 plus and Fairphone 1 with Android 4.4.4.

The funny thing is I can see in safari that .nav-bar-tabs-top.hide ~ .view-container .tabs-top .tabs" { top:0; }

Then If I play with the debugger for instance changing the value to 1 then it gets positioned correctly.

Alexintosh avatar May 18 '16 15:05 Alexintosh