[TIMOB-1426] dynamically changing zIndex does not work
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Trivial | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2011-04-17T01:56:08.000+0000 | 
| Affected Version/s | n/a | 
| Fix Version/s | Release 1.5.0 | 
| Components | iOS | 
| Labels | n/a | 
| Reporter | Nolan Wright | 
| Assignee | Blain Hamon | 
| Created | 2011-04-15T02:52:02.000+0000 | 
| Updated | 2011-04-17T01:56:08.000+0000 | 
Description
var w = Ti.UI.createWindow({backgroundColor:'#fff'});
var v1 = Ti.UI.createView({backgroundColor:'blue', height:60,width:320});
w.add(v1);
var v2 = Ti.UI.createView({backgroundColor:'pink', height:50,width:300});
w.add(v2);
var b = Ti.UI.createButton({
    title:'open',
    top:10,
    height:40,
    width:200
});
w.add(b);
b.addEventListener('click', function()
{
    v1.zIndex = 5;
});
w.open();
I have encountered this issue and am a little stuck without it. Any ideas when this might get fixed? or suggestions to work around it?
(from [48efc48d8a2d072fbe5347247fb3748a809cc582]) [#775 status:fixed-in-qa] [#1426 status:fixed-in-qa] [#1416 status:fixed-in-qa] zIndex sorting must happen in the parent of the view whose zIndex changed. http://github.com/appcelerator/titanium_mobile/commit/48efc48d8a2d072fbe5347247fb3748a809cc582"> http://github.com/appcelerator/titanium_mobile/commit/48efc48d8a2d0...
(from [6a5a8a1cd4fe1e05fbfcfb076d3a1bdb9238d27b]) [#775 status:fixed-in-qa] [#1426 status:fixed-in-qa] [#1416 status:fixed-in-qa] zIndex sorting must happen in the parent of the view whose zIndex changed. http://github.com/appcelerator/titanium_mobile/commit/6a5a8a1cd4fe1e05fbfcfb076d3a1bdb9238d27b"> http://github.com/appcelerator/titanium_mobile/commit/6a5a8a1cd4fe1...
(from [483124c7082e31db4e80b3de4739f7eeb703da27]) [#2183 state:fixed-in-qa] [#775 state:fixed-in-qa] [#2092 state:fixed-in-qa] [#1426 state:fixed-in-qa] [#1416 state:fixed-in-qa] This time, zIndex is fixed for sure! Really now! Honest! http://github.com/appcelerator/titanium_mobile/commit/483124c7082e31db4e80b3de4739f7eeb703da27"> http://github.com/appcelerator/titanium_mobile/commit/483124c7082e3...
iPod 3GT 4.2.1, 1.5.0.a899d42