[TIMOB-7685] Android: HW window: view does not show on 3.x devices
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-06T04:25:46.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 2.0.0 |
Fix Version/s | Sprint 2012-05, Release 2.0.0 |
Components | Android |
Labels | module_views, qe-testadded |
Reporter | Ping Wang |
Assignee | Allen Yeung |
Created | 2012-02-16T12:24:43.000+0000 |
Updated | 2012-07-09T12:49:06.000+0000 |
Description
Sample code:
var win = Ti.UI.createWindow({
fullscreen: true,
backgroundColor: 'blue'
});
var bkgdView = Ti.UI.createView({
left: 0,
width: 200,
height: 200,
backgroundColor: 'white'
});
var v = Ti.UI.createView({
left: 50,
width: 100,
height: 100,
backgroundColor: 'green'
});
bkgdView.add(v);
win.add(bkgdView);
win.open();
Steps to reproduce:
1. run the above sample code on 3.x devices.
Expected result:
There should be two views in the window: one is white and one is green.
Actual result:
There is only one green view showing in the window. The white view will show up after an orientation change.
PR ready: https://github.com/appcelerator/titanium_mobile/pull/1587
Closing bug. Verified fix on: SDK build: 2.0.0.v20120316093247 Runtime: v8, Rhino Titanium Studio, build: 2.0.0.201203152033 Device: Motorola Xoom (3.2.1)
Re-opening to edit labels