我正在使用 Cordova 3.4.1 和 the Keyboard plugin来自 cordova-plugins .根据键盘插件的文档,我应该可以设置 <preference name="KeyboardShrinksView" value="true" />
偏好或调用Keyboard.shrinkView(true)
在我的 Javascript 中制作键盘,呃,缩小 View 。
不幸的是,据我所知,这些都没有任何效果,我不知道如何进行。我将不胜感激任何人都可以提供的帮助,以使其按广告宣传。
我不确定为调试目的提供哪些配置或代码对我有用。这是config.xml
对于 iOS 版本:
https://gist.github.com/mccutchen/3fd6c3f1d4096a348a00
这个问题问的问题大致相同,但还没有任何有用的答案:
PhoneGap 3.3 iOS KeyboardShrinksView
谢谢!
最佳答案
请参阅我对这篇 SO 文章的回复,以获取有关此(仍 Unresolved AFAIK)主题的一些可能的帮助/见解:Phonegap KeyboardShrinksView and position fixed on iOS not applying correctly
关于ios - KeyboardShrinksView & Keyboard.shrinkView(true) 对带有 Cordova 3.4.1 + 键盘插件的 iOS 没有影响,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24021987/