Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4111] iPad - WebView with local HTML files rotation bug

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2011-06-20T13:46:57.000+0000
Affected Version/sRelease 1.7.0, Release 1.6.2
Fix Version/sSprint 2011-25
ComponentsiOS
Labelsipad, rotation, webview
ReporterPedro Enrique
AssigneeBlain Hamon
Created2011-05-16T14:13:44.000+0000
Updated2011-06-23T08:57:07.000+0000

Description

The content of a webview will not resize when switched from landscape to portrait. Attached is a sample code. Start the app in portrait mode and then switch to landscape, the content inside the webview will resize accordingly. Now start the app in landscape mode and then switch to portrait, the content will not resize and will make the webview horizontally scrollable - not expected behavior. This only happens with local html files, not with remote. The customer from the helpdesk that reported this also created a video demonstrating the issue: http://dl.dropbox.com/u/167040/IMG_0354.m4v Helpdesk ticket: http://support.appcelerator.com/tickets/APP-147815/homepage

Attachments

FileDateSize
Resources.zip2011-05-16T14:13:44.000+00001661424

Comments

  1. Blain Hamon 2011-06-20

    Duplicate of invalid bug 3413. This is due to the HTML not requesting a viewport size. Paraphrasing the other bug's comment: The HTML *must* have the following meta tag in the HTML head in order to properly size: To compensate for the webview's width actually being _thinner_ than the device's width of 768, use the following instead. Once the HTML was fixed to the have the proper text, web page behaved as desired.

JSON Source