Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9786] iOS: WebView - Webview does not display correctly after first orientation change.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-03T04:10:51.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-13 Core
ComponentsiOS
Labelscore, module_webview, qe-ios060112, qe-testadded, regression
ReporterAnshu Mittal
AssigneeStephen Tramer
Created2012-06-25T04:46:14.000+0000
Updated2012-07-03T16:11:06.000+0000

Description

Webview does not display correctly after first orientation change of the device. This is regression. This issue does not occur on 2.0.2 GA Steps to reproduce: 1. Create an app using the code below. 2. Launch the app in portrait mode. Let the webpage load. 3. Change the orientation to landscape. Actual: The display of the screen gets distorted. (eg. On appcelerator home page, white background of the lower half screen turns to black on right half) Expected: The display of the screen should remain same on orientation change.

Titanium.UI.setBackgroundColor('#000');

var win = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});

var webview1 = Ti.UI.createWebView({
			url : 'http://www.appcelerator.com'
		});
win.add(webview1);

win.open();

Comments

  1. Eric Merriman 2012-06-25

    COnfirmed this is occurring. Looks like a CSS problem. This does not occur with Safari loading the same URL.
  2. Vishal Duggal 2012-06-25

    Regression caused due to fix for TIMOB-9330 Note to QE. When the fix for this ticket is tested make sure it does not regress TIMOB-9330 (unless we mark it as unresolved).
  3. Vishal Duggal 2012-06-25

    TIMOB-9330 caused this regression
  4. Stephen Tramer 2012-06-25

    Caused by fix to TIMOB-9330 (74635c0f7050e570cd9f8e3221b089ff52ff3937)
  5. Blain Hamon 2012-06-25

    Pull merged
  6. Tamila Smolich 2012-06-26

    Closing as fixed. Tested and verified with: Titanium Studio, build: 2.1.0.201206251749 Titanium SDK: 2.1.0.v20120626104306
  7. Neha Chhabra 2012-07-03

    Reopening to update labels.

JSON Source