{ "id": "119906", "key": "TIMOB-15159", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-09-13T23:24:27.000+0000", "created": "2013-09-13T12:02:27.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "iOS7", "mobilesdk", "titanium" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:04:24.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When we add one window object to another parent window object, then child window object is not visible.\r\n\r\n*Steps to reproduce*\r\n1: Use the below sample code and copy paste it in app.js\r\n2: Run the project.\r\n3: click on *open added window* button.\r\n4: using 3.1.3 SDK, only parent window i.e. yellow colored window will be displayed.\r\n\r\n\r\nNote: Using 3.1.2.GA SDK both parent and child windows are displayed. i.e. yellow and red colored windows are displayed.\r\n\r\n*Sample code*\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor : \"gray\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttop:20,\r\n\tleft:20,\r\n\theight:100,\r\n\twidth:200,\r\n\ttitle : \"open added window\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n\tvar win2 = Ti.UI.createWindow({\r\n\t\tbackgroundColor : \"yellow\"\r\n\t});\r\n\r\n\tvar win3 = Ti.UI.createWindow({\r\n\t\ttop:100,\r\n\t\tleft:100,\r\n\t\theight:180,\r\n\t\twidth:200,\r\n\t\tbackgroundColor : \"red\"\r\n\t});\r\n\t\r\n\twin2.add(win3);\r\n\t\r\n\twin2.open();\r\n});\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n\ttop:220,\r\n\tleft:20,\r\n\theight:100,\r\n\twidth:200,\r\n\ttitle : \"open new single window\"\r\n});\r\n\r\nbtn1.addEventListener(\"click\", function() {\r\n\tvar win2 = Ti.UI.createWindow({\r\n\t\tbackgroundColor : \"pink\"\r\n\t});\r\n\t\r\n\twin2.open();\r\n});\r\n\r\n\r\nwin1.add(btn);\r\nwin1.add(btn1);\r\n\r\nwin1.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Adding child window to parent window does not display", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, iOS.", "comment": { "comments": [ { "id": "271140", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is a conscious change and part of ios windows refactor. Windows are not supposed to be children of other views. We have explicitly disabled this in 3.1.3 and above.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-13T23:24:27.000+0000", "updated": "2013-09-13T23:24:27.000+0000" }, { "id": "413521", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:04:24.000+0000", "updated": "2017-03-17T18:04:24.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }