[ 
https://issues.apache.org/jira/browse/CB-5641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah updated CB-5641:
---------------------------------

    Labels: core  (was: )

> Displaying keyboard pushes view up
> ----------------------------------
>
>                 Key: CB-5641
>                 URL: https://issues.apache.org/jira/browse/CB-5641
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.2.0
>         Environment: iOS
>            Reporter: Tien Do
>              Labels: core
>
> Tested environment: iOS 6.0, NO keyboard plugin.
> When focusing on an input/textarea field that result in keyboard is displayed 
> then the view is pushed about 40px up.
> It was happened in version 3.0.0 and could work-around by below code, then it 
> seemed to be fixed in 3.1.0 since I removed below code in the test app. But 
> now it happens again in 3.2.0, I guess that it caused by changes relate to 
> keyboard plugin, so now, add back below code snippet will work-around again 
> in 3.2.0
> // Prevent screen from pushing up when keyboard appears.
> // 
> http://stackoverflow.com/questions/13820088/how-to-prevent-keyboard-push-up-webview-at-ios-app-using-phonegap
> $(document).on("focus", "input", function (e) {
>                       e.preventDefault();
>                       e.stopPropagation();
>                       window.scrollTo(0, 0);
>               });



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to