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 2018/11/23 07:25:20 UTC
[GitHub] soumenmanna92 commented on issue #417: Keyboard Dismissal Leaves
Viewport Shifted in iOS 12 / XCode 10
soumenmanna92 commented on issue #417: Keyboard Dismissal Leaves Viewport Shifted in iOS 12 / XCode 10
URL: https://github.com/apache/cordova-ios/issues/417#issuecomment-441169794
Use the following code in device ready. This works for me.
```
$('input').on("blur",function (e) {
window.scrollTo(0,0);
});
$('input').on("focus",function (e) {
var inputpos = $(this).offset().top - 200;
window.scrollTo(0, inputpos);
});
```
----------------------------------------------------------------
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:
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