Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phonegap 2.2 orientation change does not resize app

Tags:

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.

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

problem

like image 792
noway Avatar asked Nov 20 '12 21:11

noway


1 Answers

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" />

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" />

landscape is supported

like image 198
Stephan Bönnemann-Walenta Avatar answered Sep 24 '22 23:09

Stephan Bönnemann-Walenta