Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7685] Android: HW window: view does not show on 3.x devices

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-06T04:25:46.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sSprint 2012-05, Release 2.0.0
ComponentsAndroid
Labelsmodule_views, qe-testadded
ReporterPing Wang
AssigneeAllen Yeung
Created2012-02-16T12:24:43.000+0000
Updated2012-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.

Comments

  1. Allen Yeung 2012-03-06

    PR ready: https://github.com/appcelerator/titanium_mobile/pull/1587
  2. Satyam Sekhri 2012-03-16

    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)
  3. Shyam Bhadauria 2012-07-06

    Re-opening to edit labels

JSON Source