Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7615] Android: zIndex on Ti.UI.Window doesn't work properly

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T11:13:32.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-04, Release 2.0.0, Release 1.8.2
ComponentsAndroid
Labelsregression
ReporterJunaid Younus
AssigneeHieu Pham
Created2012-02-10T13:39:03.000+0000
Updated2012-02-15T10:36:12.000+0000

Description

*Here is the code for app.js:*
var test = require('win2');

var win1 = Ti.UI.createWindow({
	zIndex: 1,
	backgroundColor:'red',
});

win1.addEventListener('click', function(){
	var win2 = test.anotherWin();
	win2.open();
});

win1.open(); 
*Here is the code for win2.js:*
exports.anotherWin = function(){
	var win = Ti.UI.createWindow({
		backgroundColor:'yellow',
		zIndex: 2
	});
	
	return win;
}
*What is supposed to happen:* When you tap on the red window once, it should display the yellow window. *What currently happens:* When you tap the red window once, nothing happens. When you tap it again, the yellow window is displayed. *Notes:* Without any zIndex, it seems to work fine. However with the zIndex, this issue occurs. Android TiSDK 1.8.1

Comments

  1. Junaid Younus 2012-02-10

    Similar zIndex issue seems to exists for other components too, such as buttons, picker etc..
  2. Michael Pettiford 2012-02-15

    Closing issue Tested with Ti Studio build 1.0.9.201202131024 Ti Mob SDK 1.8.2.v20120214163156 OSX Lion 10.7.3 Nexus S OS 2.3.6 Verified that the expected behavior is shown of the yellow view being shown after pressing the red view

JSON Source