Skip to content
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

iOS10 webview resize bugs #34

Closed
kristfal opened this issue Sep 5, 2016 · 5 comments
Closed

iOS10 webview resize bugs #34

kristfal opened this issue Sep 5, 2016 · 5 comments

Comments

@kristfal
Copy link

kristfal commented Sep 5, 2016

iOS10 introduces a bug that is exposed when calling window.Keyboard.shrinkView();:

When opening the keyboard with and window.Keyboard.shrinkView(true); iOS9 would resize the GUI and a window.onresize event would fire. In iOS10, the GUI is not resized (elements that would overflow and create a scrolling context does not scroll).

In order for the overflowing elements to be scrollable, one has to manually update (remove and reset) the overflow CSS propery on the overflowing DIV after the keyboard has entered the view.

@kristfal kristfal changed the title iOS10 webview resize handlers are not notified iOS10 webview resize bugs Sep 5, 2016
@cjpearson
Copy link
Owner

Are you using UIWebView or WKWebView?

@kristfal
Copy link
Author

kristfal commented Sep 9, 2016

@cjpearson Only tested in WKWebView.

@cjpearson
Copy link
Owner

It may be related to #32. The changelog for the WebKit bug mentions that it no longer fires resize events.

@beijiyibei
Copy link

The same problem, do not know how to solve

@cjpearson
Copy link
Owner

Closing this as I think #32 fixed it. It should work in 1.1.5. Let me know if you still see this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants