[TIMOB-9786] iOS: WebView - Webview does not display correctly after first orientation change.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-03T04:10:51.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-13 Core |
Components | iOS |
Labels | core, module_webview, qe-ios060112, qe-testadded, regression |
Reporter | Anshu Mittal |
Assignee | Stephen Tramer |
Created | 2012-06-25T04:46:14.000+0000 |
Updated | 2012-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();
COnfirmed this is occurring. Looks like a CSS problem. This does not occur with Safari loading the same URL.
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).
TIMOB-9330 caused this regression
Caused by fix to TIMOB-9330 (74635c0f7050e570cd9f8e3221b089ff52ff3937)
Pull merged
Closing as fixed. Tested and verified with: Titanium Studio, build: 2.1.0.201206251749 Titanium SDK: 2.1.0.v20120626104306
Reopening to update labels.