thepianist2 edited a comment on issue #417: Keyboard Dismissal Leaves Viewport Shifted in iOS 12 / XCode 10 URL: https://github.com/apache/cordova-ios/issues/417#issuecomment-438682821 My solution was use a plugin or any thing to detect the event on keyboard native hide, and on this moment execute script to normalize the height of the app. https://github.com/cjpearson/cordova-plugin-keyboard ``` //install the plugin cordova plugin add cordova-plugin-keyboard //on the .js file detect the event and apply the normal height in the event the keyboard will hide. window.addEventListener('keyboardWillHide', function () { document.getElementsByTagName('html')[0].style.height = '101vh'; setTimeout(()=>{ document.getElementsByTagName('html')[0].style.height = '100vh'; }, 40); }); ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org