[
https://issues.apache.org/jira/browse/CB-5641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah updated CB-5641:
---------------------------------
Description:
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
{code}
// 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);
});
{code}
was:
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);
});
> 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
> {code}
> // 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);
> });
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]