[TIMOB-5630] MobileWeb: Incorrect work of zIndex property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-25T02:01:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-05-24T07:04:42.000+0000 |
Updated | 2017-03-09T20:05:56.000+0000 |
Description
If the position of the object is not absolute the property zIndex will not works. There is an error in Chrome console "Uncaught TypeError: Cannot set property '_isBack' of undefined" titanium.js:1752.
win = Ti.UI.currentWindow;
var win1 = Ti.UI.createWindow({
width: 300,
height: 300,
title: 'win1',
backgroundColor: '#800',
zIndex: 13
})
var win2 = Ti.UI.createWindow({
width: 300,
height: 300,
top: 50,
left: 50,
title: 'win1',
backgroundColor: '#080',
zIndex: 9
})
win.add(win1);
win.add(win2);
Closing ticket as fixed.