PhoneGap 3.3 iOS键盘缩略图

在PhoneGap / Cordova 3.3(和3.2)中,优先级为iOS的KeyboardShrinksView消失了,并被replace为enableViewPortScale

任何人都可以向我解释如何实现与使用KeyboardShrinksView,但使用enableViewPortScale和视口 Metatag相同的结果?

在iOS中,如果用户打开键盘,我需要缩小整个视图。

这是我最终做的:

<meta name="viewport" content="initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0, height=device-height"/> 

感谢@ daniel-miller,上面的答案是从他这里来的:

PhoneGap使用iFrame /对象和JQTouch隐藏PhoneGap Build 3.1中的iOSinput字段

其他帮助: https : //groups.google.com/forum/#!topic/ phonegap/ 87K3lYr6f40

提交删除这些(见https://issues.apache.org/jira/browse/CB-4978 )指出:

键盘首选项已经从核心中删除,并放入其自己的插件在cordova实验室插件分支。

我已经跟踪到https://github.com/apache/cordova-plugins/tree/master/keyboard和这个叉(?)&#xFF1A; https : //github.com/etiennea/phonegap-keyboard

这应该允许你使用

 Keyboard.shrinkView(true) 

在你的JS Minic的KeyboardShrinksView的旧function