question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report] v-bottom-nav doesn't push up correctly on iPhone X

See original GitHub issue

Versions and Environment

Vuetify: 1.4.4 Vue: 2.5.22 Browsers: Safari OS: iOS

Steps to reproduce

I’m creating a Cordova hybrid app. If I create a v-bottom-nav fixed to the bottom of the screen

            <v-bottom-nav value="true" app>
                <v-btn color="#ae2573" flat>
                    HOME
                    <v-icon>home</v-icon>
                </v-btn>
                <v-btn color="#ae2573" flat>
                    READING LIST
                    <v-icon>library_books</v-icon>
                </v-btn>
                <v-btn color="#ae2573" flat>
                    SEARCH
                    <v-icon>search</v-icon>
                </v-btn>
            </v-bottom-nav>

it gets covered up on an iPhone X with the safe area (see image1).

If I then put the necessary css as suggested (https://blog.phonegap.com/displaying-a-phonegap-app-correctly-on-the-iphone-x-c4a85664c493)

    .v-bottom-nav {
        margin-bottom: constant(safe-area-inset-bottom); /* move footer up on iPhone X - iOS 11.0 */
        margin-bottom: env(safe-area-inset-bottom); /* move footer up on iPhone X - iOS 11.2 */
    }

then it does push it up (see image2), however the content is shown below it. I think the navbar needs to cover this area with the same background color.

Expected Behavior

Content shouldn’t show below navbar.

Actual Behavior

Content shows below navbar.

Reproduction Link

https://codepen.io/funkyvisions/live/OdgqQE

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
LineWolffcommented, Jan 7, 2020

In Vuetify 2.2.1 (pure web-app, not cordova) fixed it/hacked it using:

.v-bottom-navigation {
  height: auto !important;
}

.v-bottom-navigation >>> .v-btn__content {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: constant( safe-area-inset-bottom ); /* move footer up on iPhone X - iOS 11.0 */
  margin-bottom: env( safe-area-inset-bottom ); /* move footer up on iPhone X - iOS 11.2 */
}
4reactions
pizzapanthercommented, Dec 9, 2019

I didn’t use the bottom bar, however, I’m using Vuetify for a Capacitor/Cordova app and had similar issues. I used the following CSS to fix. It would be nice to have a utility for this.

body.native {
  .v-navigation-drawer {
    top: env(safe-area-inset-top) !important;
    left: env(safe-area-inset-left) !important;
  }

  .v-app-bar {
    top: env(safe-area-inset-top) !important;
    left: env(safe-area-inset-left) !important;
  }

  main.v-content {
    margin-top: env(safe-area-inset-top) !important;
    margin-left: env(safe-area-inset-left) !important;
    margin-right: env(safe-area-inset-right) !important;
    margin-bottom: env(safe-area-inset-bottom) !important;
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug Reporting - Apple Developer
With Feedback Assistant available on iPhone, iPad, Mac, and the web, it's easy to report issues you encounter and request enhancements to APIs,...
Read more >
How to Report Bugs to Apple So They Get Fixed - TidBITS
Write clear, complete bug reports. Include screenshots, video, and sample code, if possible. Report bugs as early as possible. Work within ...
Read more >
STOP These Push Up Mistakes! How To Do A Push Up Correctly
How to do a push up with perfect form every time - avoid these common mistakes! Bonus push ups progression for beginners -...
Read more >
6 Dumbest Push-Up Mistakes Sabotaging Your Chest Growth ...
(0:15)- 7 Dumbest Tricep Dip Mistakes Sabotaging Your Triceps Growth!
Read more >
NEVER DO PUSHUPS LIKE THIS | 10 Most Common Mistakes
Gotta Get up, Distant, Remanded In this FitnessFAQs video we will be ... Most people have never had guidance for how to push...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found