-
Notifications
You must be signed in to change notification settings - Fork 347
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
Odd style behaviours when view is shrunk #11
Comments
@hellopablo, it looks like your issue is similar to this one. Have you tried setting automaticScrollToTopOnHiding to true?
Also, what does your viewport tag look like? |
Thanks, @cjpearson, but unfortunately that didn't help. Head looks like this:
|
Do you have an example app that shows the issue? I can try and look into it. |
Sure do. Will send you the repo link via email. Thanks! |
I'm a bit confused. I was using the iconic keyboard plugin, it did what I needed. I want to switch to wkwebview, and I upgraded to cordova 6.0, and xcode 7.2. I changed my server to enable CORS: Access-Control-Allow-Origin: *, switched from WEBSQL to IndexedDB using localforage, and a few other changes, but I've gotten stuck on issues regarding the keyboard. I remember there was some bug a couple years ago, that opening the keyboard caused the window to scroll down, and never scroll back up, that's why I was using iconic's disableScroll function, and it seemed to work. I saw a bug report that these things had been fixed in Telerik-Verified-Plugins/WKWebView, but it seems like the cordova one was more up to date, so I've tried cordova-plugin-wkwebview-engine along with cordova-plugin-keyboard. In any case, as soon as I open the keyboard, the current window scrolls out of view, and the textinput is no longer visible. As soon as I hit a key, it comes back into view. After the keyboard is closed, the bottom of the screen is now off by about 20 pixels, and never corrects itself. It's a little disconcerting, and may mean, I need to abandon wkwebview, and go back to the old webview. I've tried various combinations of Keyboard.automaticScrollToTopOnHiding = true; and Keyboard.disableScrollingInShrinkView(true); but to know avail. The Keyboard.hideFormAccessoryBar(true); does work. Any ideas? |
Just to clarify cordova-plugin-keyboard and UIWebView works correctly, but cordova-plugin-keyboard combined with cordova-plugin-wkwebview causes this issue? Do you have a simple example that shows this? Also, which Telerik-Verified-Plugins/WKWebView issue are you referring to? |
Yes. cordova-plugin-keyboard combined with cordova-plugin-wkwebview causes this issue. Telerik-Verified-Plugins/WKWebView#27 I don't have a simple example, but if you can't reproduce the problem, I could try to put a simple one together. |
I think an example would help. I'm seeing some issues with the scrollview on WKWebView, but not as you describe. If you add |
Closing abandoned issues / clearing my issues inbox. |
I'm finding odd behaviours when the keyboard is shown on iOS.
I have absolutely and fixed positioned elements, and their positionings go completely off when the keyboard shows. Also, scrolling seems to be disabled, despite setting
Keyboard.disableScrollingInShrinkView(false);
Does the plugin do anything beyond simply adjusting the height of the native webview? I'm not really sure where to begin debugging.
Thanks!
The text was updated successfully, but these errors were encountered: