Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5630] MobileWeb: Incorrect work of zIndex property

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-05-25T02:01:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-05-24T07:04:42.000+0000
Updated2017-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);

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source