PhoneGap 3.3 iOS KeyboardShrinksView [英] PhoneGap 3.3 iOS KeyboardShrinksView

查看:161
本文介绍了PhoneGap 3.3 iOS KeyboardShrinksView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PhoneGap / Cordova 3.3(和3.2)中,iOS的偏好设置 KeyboardShrinksView 已取消,并已替换为 enableViewPortScale

In PhoneGap/Cordova 3.3 (and 3.2) the preference KeyboardShrinksView for iOS is gone and has been replaced with enableViewPortScale.

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

Can anyone explain to me how to achieve the same result I would get with KeyboardShrinksView but by using enableViewPortScale and the viewport Metatag?

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

When in iOS, if the user opens the keyboard I need the entire view to shrink.

推荐答案

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

感谢@ daniel-miller,上面的答案来自他:

Thanks to @daniel-miller, the answer above came from him here:

键盘使用iFrame /对象和JQTouch隐藏PhoneGap Build 3.1中的iOS输入字段

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

这篇关于PhoneGap 3.3 iOS KeyboardShrinksView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆