Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

When closing keyboard, content doesn't scroll back leaving ehite space in place of keyboard #71

Closed
Yuripetusko opened this issue Dec 3, 2018 · 11 comments

Comments

@Yuripetusko
Copy link

Hi, this issue started with latest osx/xcode updates, nothing changed in code, and exactly same code and cordova/wkwebivew version worked fine a month ago. Now building the same code gives following issue, it is also described here:

https://forum.mendixcloud.com/link/questions/91916

Removing wkwebview fixes this issue

(I am not using any custom keyboard plugins)

Screenshots:
img_0019

img_0017

img_0018

Here's a video of this happening:

https://drive.google.com/file/d/1PXkIu2Q5b0GDSrzKyrm_okyg2ciCVewK/view?usp=sharing

@Yuripetusko
Copy link
Author

More info here: apache/cordova-ios#417 (comment)

@Yuripetusko
Copy link
Author

For now solved this by downgrading to Xcode 9

mwchambers added a commit to mwchambers/cordova-plugin-wkwebview-engine that referenced this issue Jan 4, 2019
@mwchambers
Copy link

For anyone still experiencing this problem the commit referenced above mwchambers@da67d6b
based on the changes here: https://github.com/ionic-team/cordova-plugin-ionic-webview/pull/201/commits seems to fix the problem.

@adam-h
Copy link

adam-h commented Jan 16, 2019

Works for us @mwchambers, thanks! It may be good to submit this as a PR.

@WuglyakBolgoink
Copy link

fyi: #75

@jacobweber
Copy link

The fix from @mwchambers worked for me as well. Could something like this be included in a release? I realize this is an Apple bug, but who knows if they'll ever fix it.

@shahdeep1989
Copy link

Why It's not fixed yet? Can any one provide me solution for this issue?

@be-ndee
Copy link

be-ndee commented Jul 16, 2019

I have the same issue. I use the cordova-plugin-keyboard and can "solve" this issue with the following event listener. So everytime the keyboard will close, the window will scroll back to the correct position.

window.addEventListener('keyboardWillHide', () => window.scrollTo(0, 0));

See apache/cordova-ios#417 (comment)

@c-emil
Copy link

c-emil commented Aug 22, 2019

See alternative solution without keyboard plugin: apache/cordova-ios#417 (comment)

@Lindsay-Needs-Sleep
Copy link

Lindsay-Needs-Sleep commented Mar 23, 2020

Since Apple should release the fix for this eventually, (WKWebView has already marked the bug as fixed...), you should be able to use cordova-plugin-wkkeyboardfix to fix the bug until Apple finally releases.

See plugin author's original comment:
apache/cordova-ios#417 (comment)

@dpogue
Copy link
Member

dpogue commented Apr 21, 2020

This is resolved in iOS 13.4. For earlier versions of iOS, using the cordova-plugin-wkkeyboardfix is probably the best solution. We will not be making any changes to Cordova to address this bug.

@dpogue dpogue closed this as completed Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet