Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1426] dynamically changing zIndex does not work

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:08.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:52:02.000+0000
Updated2011-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();

Comments

  1. Peter Lee 2011-04-15

    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?

  2. Jeff Haynie 2011-04-15

    (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...

  3. Jeff Haynie 2011-04-15

    (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...

  4. Jeff Haynie 2011-04-15

    (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...

  5. Stephen Tramer 2011-04-15

    iPod 3GT 4.2.1, 1.5.0.a899d42

JSON Source