-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Empty space at the bottom of the screen on iOS with Cordova WKWebview #6695
Comments
It looks like the Ionic folks wrote a patch for this. You need to:
More info at https://github.com/ionic-team/cordova-plugin-ionic-webview |
Ionic webview works fine, but... I just found that it's currently not compatible with Firebase's SignInWithRedirect. |
I've reverted to Cordova's WKWebView. After more investigation, it turns out that the |
Temporary workaround: just add <div style="height: 100vh; position: absolute; visibility: hidden; width: 1px;"></div> But this will not work whenever the body has One can override .q-body--prevent-scroll.platform-ios {
overflow: hidden;
position: relative !important;
} But then there is an issue with scrolling in iOS, which is due to a specific hack for iOS in the Dialog plugin. It seemed ok when I disabled it as well, but it comes useful in some cases, so... Good luck if you need to search more. |
We do recommend the Ionic Webview. |
That's how I fix this problem.
// prevent dialog blank space
.scrolling-trouble {
overflow-y: hidden !important;
height: 1px;
} Inspired by & Thanks @FlickerSoul |
ionic cordova plugin rm cordova-plugin-ionic-webview Try this, I fixed same issue using above link |
viewport-fit=cover just add this to your meta tag |
Describe the bug
The bug is the white space at the bottom of the screenshot below. The bottom-sheet and its dark underlay should reach the bottom of the screen.
Remarks
This happens because of this property:Which was introduced because of this: #4497It's solved as soon as I disable
position: fixed
. I fiddled with "height: 100%", "bottom: 0" etc. but couldn't find a way to work around this wkwebviewposition: fixed
bug.I suggest to try an alternate way to prevent scrolling, as described on https://stackoverflow.com/questions/3047337/does-overflowhidden-applied-to-body-work-on-iphone-safariTested on a real iPhone XS, with iOS 13.3.1
Happens with or without any cordova plugins installed.
It does not happen when using Capacitor, or Android, or in a browser.
Note: strangely, the bug no longer happens after the device is rotated at least once.
The text was updated successfully, but these errors were encountered: