You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/27 11:58:42 UTC

[GitHub] [cordova-ios] manuarya commented on issue #417: Keyboard Dismissal Leaves Viewport Shifted in iOS 12 / XCode 10

manuarya commented on issue #417: Keyboard Dismissal Leaves Viewport Shifted in iOS 12 / XCode 10
URL: https://github.com/apache/cordova-ios/issues/417#issuecomment-487279993
 
 
   [FIXED]
   To solve the issue
   1. Install ionic native keyboard
   
   `npm install @ionic-native/keyboard`
   
   2. Import the same in app.module.ts
   
   3. On the page where keyboard is producing the problem
   
   `this.keyboard.onKeyboardHide().subcribe(()=>{
   window.scrollTo(0,0);
   })`
   
   
   PS: I tried nearly all the solutions on this page but only this one worked for me.
   
   Working on iOS 12 & xcode 10.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org