-
Notifications
You must be signed in to change notification settings - Fork 13.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
bug: iOS white screen after keyboard show (in v1.2.1 and v1.2.0 only) #4849
Comments
Hmm, not able to reproduce on iOS 9. Can you try this app and let me know what you see in the first dashboard tab with the keyboard? |
+1. It woks fine if I remove the ion-content tag after ion-view |
+1 in iOS 9.2 / iPhone 6s
|
I had the same. Reproducible in IOS Simulator iPhone 5s with IOS 9.2, but not with iPhone 6. |
+1 seeing this with wkwebview |
Seems to be the same issue as #4645 where I added quite an extensive comment: #4645 (comment) Our temporary workaround is to set overflow-y to hidden whenever a keyboard transition starts and to set it back to scroll whenever a keyboard transition has ended. Having this in place, the blank screen issue seems not to occur anymore. However, this should be temporary only. |
Yes, temporary downgrade to 1.1.1 to avoid this bug |
Do you guys have the |
Okay, it seems to fail when using the accessory bar with the keyboard plugin. One solution is to not use the accessory bar (which is the default and more native like anyways). Looking into fixing this. |
Err, not quite resolved just yet, need to reset something |
I haven't used the keyboard plugin but it dosen't work either |
I cannot use cordova-plugin-keyboard works as per this commit. |
Okay, just pushed a fix for this to master. Can you try and let me know? I suppose we'll need to update our plugin for wkwebview. The major important point is that disable scroll has to be set to true on the web view if you want normal behavior. If you're not using WKWebView, you will want to use |
Thanks @mlynch for the fix. I'll try it in a couple of days, off for New Years right now. We are using the keyboard plugin but not WKWebView. |
I can confirm that it's working with my configuration:
Thank you! |
@mlynch Confirm that no blank screens occur anymore in our setup using 1.2.2. |
@leschirmeur thanks. Thinking of going back to JS scrolling for iOS given a number of issues we're discovering now. Want to apologize to everyone for the QA issues in this recent release. |
using ion-scroll instead of ion-content solve the problem |
In My Case also the input labels are getting hidden by the keyboard in ios. |
Yes using ion-scroll instead of ion-content solve the problem but in my case I have fixed footer button in ion-footer-bar which is outside of ion-scroll but in the ion-view. I want to hide that footer when the keyboard opened but native.keyboardshow event not firing #33 . I don't want to write hard code event listener on focus or blur event for hide and show footer. Any opinion will be helpful thanks.. |
If I use ion-scroll it showing white screen at the bottom of the screen. |
ugh |
it will avid the blank or white screen add this two attributes to ion-content padding="true" overflow-scroll="false" it is working for me |
The white screen comes from a css redraw issue apparently. We have found a quick workaround: we have created a directive that forces the browser to redraw the Here is the directive:
Apply directive:
This solution is a bit dirty as we constantly redraw the element. As it seems we have tackle the issue, it would be great if some ionic expert could help rewriting this code in a proper "ionic/angular" way :) |
After long nightmares, in version 1.3.1, adding |
Thank you @demirag this saved the day! |
Bug is definitely still in ionic 1.3. I didn't want to have to set overflow-scroll false on all my ion-content elements or use the ionicConfigProvider to disable native scroll (since js scrolling has other issues), so I just added back this snippet of css that was removed in 1.3.0 aec6598d:
|
I know I am a little late, but here's my two cents. turning off overflow-scroll seamed to work, but I prefer keeping the native scrolling on. So I did something similar to @edesaintchamas but used ionic-plugin-keyboard to make it a bit more efficient
And yes, I know you shouldn't use jQuery with ionic, but it is what it is. |
Still reproducible for me. Thanks @Lsozke for solution! Replacing |
Solved by replacing |
Bug still exists in Ionic 1.3.1 on iOS 10.2. Android works ok. |
Bug still exists in Ionic 1.3.2 for iOS 9 and 10, Android is working good. |
@mlynch may you re-open this please? |
I also have this problem in iOs with ionic 1, overflow-scroll="true" on ion-content helps, edit: @nstokoe solution seems to work for me, thanks! |
This bug still exists on iOS 10.2+ and ionic 1.3.2, when using Native scrolling ( Here's my almost-workaround, inspired by @nstokoe 's suggestion:
It solves the issue, the same way, but does not "block" scrolling ( In
I assume it has been left commented/unused because this bug can still cause Crashes, even if forced-redrawing almost "hides" it (yet it does not avoid flickering :-D). I didn't have a look at the keyboard plugin code, but I guess that something is wrong inside, if it can lead the app to crash. |
I've figured out that in the case of our app, what was triggering this behaviour was a swipe gesture, so adding |
I did a workaround that worked for me: CSS:
View: Seems like |
From my research it looks that all of this related with the keyboard transition. When elements have absolute positioning and -webkit-transform: translate3d(0,0,0); set while keyboard is animated the z-index gets messed up. Transform is used to kick the GPU for transitions. For more info look here: here. By removing transform everything works as expected. |
I finally got this fixed/working on iOS using native scrolling and forcing the position of modal-backdrop (the parent of any modal container) to
The media-query is made for everything beyond the resolution which is considered as a Tablet, leading to inset/centered modal (currently 680px, by default, in _variables.scss). In that case, Smartphones. |
I had this issue with native scrolling and found that it was limiting the height of the ion-content whenever the keyboard was up. This caused my view to appear truncated (half blank) unless you close the keyboard. I solved it by force setting the height to auto. Hope this helps. .keyboard-up{
height: auto !important;
} |
adding ion-scroll inside ion-content solved my issue |
Hey! Enjoy! |
@glemiere Are you sure thats all you changed? I'm having the issue with the viewport not resizing back to original size after the keyboard is closed. Have completely uninstalled and removed cordova-plugin-keyboard and only ionic keyboard is in there. Still having the issue. Whereas if I install the 'tabs' default app it works perfectly with the keyboard. |
Hi, I found the cause of this very frustrating issue for me was:
...that's it. Just make sure you don't call that. |
Removing |
Hope this helps anyone. In my case, I just set the footer background to the ion-content background color and the issue disappeared |
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. |
Type: bug
Platform: ios 8 webview
Hi,
The bug is reproducible with latest ionic releases 1.2.1 and 1.2.0, but not with 1.1.1.
In 1.1.1 it works fine.
On iOS, when I tap on some html input:
Done
button or just by tapping to non-input space) - the inputs with their labels become white, but I can still type into inputs with white font - so it looks like white screen which overlays the content.Code example:
also I've tried with the new ion-input directive:
ionic info
ionic platform ls
config.xml
bower.json
The text was updated successfully, but these errors were encountered: