-
Notifications
You must be signed in to change notification settings - Fork 345
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
Incorrect window.innerHeight when using WKWebView and shrinkView #32
Comments
I am facing a problem on iOS. Not sure if this is releated to the plugin since it is not sure if the UIWebView fire the resize event when keyboar gets hidden (https://www.quirksmode.org/dom/events/resize_mobile.html). I tested to listen to the resize event when the keyboard hides. It looks like it is quite random if the resize event is fired or not. The window.innerHeight gets adjusted everytime (just according to the fix #32 here). I finally use this "selfmade" window innerHeight listerner to ensure my resize work to be done: window.addEventListener('keyboardHeightWillChange', function () {
} |
Related to: https://bugs.webkit.org/show_bug.cgi?id=150634
On iOS 8 and 9, WKWebView subtracts the keyboard height from window.innerHeight. Since we already shrink the frame when shrinkView is enabled, this is not necessary and causes window.innerHeight to be too small.
The text was updated successfully, but these errors were encountered: