[TIMOB-4107] iPad - Webview zoom scale on rotation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-21T21:00:00.000+0000 |
Affected Version/s | Release 1.6.0, Release 1.7.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | ipad, rotation, webview |
Reporter | Pedro Enrique |
Assignee | Ingo Muschenetz |
Created | 2011-05-16T12:43:42.000+0000 |
Updated | 2017-06-21T21:00:00.000+0000 |
Description
When a webview is shown and the device is rotated, the zoom scale does not vary from one orientation to the other, and this is expected behavior. As soon as the content of the webview is scaled by "pinch and zoom" and then rotated, the zoom level is not scaled, making the content look smaller in landscape and bigger in portrait.
This very simple code illustrates the problem being described.
var win = Titanium.UI.createWindow({
backgroundColor:'blue'
});
var wv = Ti.UI.createWebView({
url:'http://appcelerator.com',
left:50,
right:50,
top:50,
bottom:50
});
win.add(wv);
win.open();
To reproduce, run on either iPad or Simulator, when the webpage loads, rotate and the page will be scaled properly. Now zoom in just a bit and then rotate, you'll see the problem.
Closing ticket due to the time passed and lack of progress for a number of years. Any problems, please file a new ticket.