[TIMOB-7615] Android: zIndex on Ti.UI.Window doesn't work properly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-14T11:13:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-04, Release 2.0.0, Release 1.8.2 |
Components | Android |
Labels | regression |
Reporter | Junaid Younus |
Assignee | Hieu Pham |
Created | 2012-02-10T13:39:03.000+0000 |
Updated | 2012-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
Similar zIndex issue seems to exists for other components too, such as buttons, picker etc..
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