Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4107] iPad - Webview zoom scale on rotation

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-21T21:00:00.000+0000
Affected Version/sRelease 1.6.0, Release 1.7.0
Fix Version/sn/a
ComponentsiOS
Labelsipad, rotation, webview
ReporterPedro Enrique
AssigneeIngo Muschenetz
Created2011-05-16T12:43:42.000+0000
Updated2017-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.

Comments

  1. Lee Morris 2017-06-21

    Closing ticket due to the time passed and lack of progress for a number of years. Any problems, please file a new ticket.

JSON Source