{ "id": "94565", "key": "TIMOB-9995", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2012-07-07T11:17:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "18979", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:55:07.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If I create window a with z-index 1, and then I create window b with z-index 0, window b is still in front of window a). While coding windows which require the original window to stay stationary (such as coding window a to \"slide-over\" window b), I can't make this work because window b appears in front of window a (even if I set the z-index).\r\n\r\nThe layering of the windows, it seems, it only defined by the order in which they were created (ignoring z-index).\r\n\r\nThe only solution I have found, is to destroy window a, and re-create it, ensuring that it will be placed above window b.\r\n\r\nThanks for your help :),\r\n-- Joel.", "attachment": [], "flagged": false, "summary": "iOS: Z-Index of Windows is ignored.", "creator": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5.0\r\nTitanium SDK 2.1.0GA\r\nAndroid 2.3 (this bug is also occurring in Android)", "comment": { "comments": [ { "id": "202011", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe this is also an issue with all components (views too).", "updateAuthor": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-07T11:17:32.000+0000", "updated": "2012-07-07T11:17:32.000+0000" }, { "id": "202012", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For those who are interested, a work-around (not solution) to this issue, is to \"push\" window b down with window a, circumventing the need for z-index, since window b never needs to be position over window a. But this requires a reference to window a, when animating window b.", "updateAuthor": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-07T11:28:58.000+0000", "updated": "2012-07-07T11:28:58.000+0000" }, { "id": "208045", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Code to reproduce\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor: 'pink',\r\n\tzIndex: 2\r\n});\r\n\r\nwin1.open();\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tbackgroundColor: 'orange',\r\n\tzIndex: 1\r\n});\r\n\r\nwin2.open();\r\n\r\n\r\n{code}", "updateAuthor": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T08:37:16.000+0000", "updated": "2012-07-17T08:37:28.000+0000" }, { "id": "208314", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an invalid ticket. zIndex will only used to windows that being placed on the same view hierarchy and not on independently opened windows. The following code is how it should actually be added and it works. \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n    backgroundColor: 'green',\r\n});\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n    backgroundColor: 'red',\r\n\theight:120,\r\n\twidth:120,\r\n\ttop:50,\r\n\tright:30,\r\n    zIndex: 2\r\n});\r\n \r\nvar win2 = Ti.UI.createWindow({\r\n    backgroundColor: 'blue',\r\n    height:120,\r\n\twidth:120,\r\n\ttop:100,\r\n\tright:60,\r\n\tzIndex: 11\r\n});\r\nwin.add(win1);\r\nwin.add(win2);\r\nwin.open();\r\n\r\n{code}\r\n\r\nMarking ticket as invalid", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T10:01:35.000+0000", "updated": "2012-07-18T10:03:37.000+0000" }, { "id": "208315", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Linking ticket to the overall bug scrub ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T10:02:26.000+0000", "updated": "2012-07-18T10:02:26.000+0000" }, { "id": "208438", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So then is there no way to layer independently opened windows other than in the order that they are opened?", "updateAuthor": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T00:30:07.000+0000", "updated": "2012-07-19T00:30:07.000+0000" }, { "id": "233372", "author": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "body": "Dear Sabil Rahim,\r\n\r\nI think you guys should really consider adding this to the documentation. I have been looking for a way to open a window behind another one for ages, without making the app flash a black background (open back first invisible, then front). If I knew this, it would have saved me hours of time.", "updateAuthor": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-07T06:05:58.000+0000", "updated": "2013-01-07T06:05:58.000+0000" }, { "id": "414964", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:12:47.000+0000", "updated": "2017-03-22T21:12:47.000+0000" }, { "id": "414974", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So then is there no way to layer independently opened windows other than in the order that they are opened?", "updateAuthor": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:15:23.000+0000", "updated": "2017-03-22T21:15:23.000+0000" }, { "id": "414983", "author": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@lmorris", "updateAuthor": { "name": "jkoett", "key": "jkoett", "displayName": "Joel Koett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:18:44.000+0000", "updated": "2017-03-22T21:18:44.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }