phonegap 2.2方向更改不会调整应用程序 [英] phonegap 2.2 orientation change does not resize app

查看:103
本文介绍了phonegap 2.2方向更改不会调整应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有这个问题在以前的版本的Phonegap。但在2.2,当我改变方向,它不更新 uiwebview

I didn't have this problem on previous versions of Phonegap. But in 2.2, when I change the orientation, it doesn't update the uiwebview.

phonegap不支持景观视图默认?

Does phonegap not support landscape view by default? How do you handle this?

推荐答案

这并不是WebView更新的问题,而是index.html的文档头中的元标记。

This is not an issue with the WebView getting updated but with the meta tag in the index.html's document head.

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />

删除不必要的 height = device-height 一切都很好

After removing the unnecessary height=device-height everything works just fine

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" />

这篇关于phonegap 2.2方向更改不会调整应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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