[TIMOB-24431] Windows Phone: Views zIndex not applied
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2019-01-02T23:36:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | order, windows, zindex |
Reporter | Sandro Lain |
Assignee | Kota Iguchi |
Created | 2017-02-24T12:45:58.000+0000 |
Updated | 2019-01-02T23:36:00.000+0000 |
Description
The views do not respect the zIndex imparted but you have depending on the order of creation.
Carry the sample code where the views are ordered with zIndex in the reverse order of creation, and attach the screen as they appear.
{noformat}
var win = Ti.UI.createWindow();
var view1 = Ti.UI.createView({
zIndex: 10,
width: 100,
height: 100,
backgroundColor: '#FF0000',
zIndex: 20,
left: 10,
top: 10
});
win.add(view1);
var view2 = Ti.UI.createView({
zIndex: 10,
width: 100,
height: 100,
backgroundColor: '#00FF00',
zIndex: 10,
left: 20,
top: 20
});
win.add(view2);
var view3 = Ti.UI.createView({
zIndex: 10,
width: 100,
height: 100,
backgroundColor: '#0000FF',
zIndex: 1,
left: 30,
top: 30
});
win.add(view3);
win.open();
{noformat}
Attachments
Duplicate of TIMOB-24239, which is fixed in 6.1.0.