{ "id": "107863", "key": "AC-2154", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-01-28T15:33:16.000+0000", "created": "2013-01-15T08:05:51.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-03-08T07:41:08.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Function [Titanium.UI.TabGroup.close()|http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.TabGroup-method-close] doesn't close the tab group and doesn't remove it from the UI.\r\n\r\nExample:\r\n\r\n{code}var wind = Titanium.UI.createWindow();\t\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar redWin = Titanium.UI.createWindow({ backgroundColor: \"red\"});\t\r\n\r\nvar baseUITab = Ti.UI.createTab({\r\n title: 'base_ui_title',\r\n window: redWin\r\n});\r\n\r\ntabGroup.addTab(baseUITab);\r\n\r\nwind.add(tabGroup);\r\n\r\nwind.addEventListener('postlayout', function (){\r\n tabGroup.close(); // does nothing\r\n});\r\n\r\nwind.open();{code}", "attachment": [], "flagged": false, "summary": "Mobile Web: Titanium.UI.TabGroup.close() doesn't close the tab group", "creator": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "environment": "MS Windows, Titanium Studio 3.0.0.201211202053, SDK 3.0.0, Chrome simulator or a Webkit mobile browser\r\n", "comment": { "comments": [ { "id": "236196", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello,\n\nYou are never calling the tabGroup.open() method, so the tab group won't be closed; if you do something like this, everything will work:\n\n{code}\nvar tabGroup = Titanium.UI.createTabGroup();\n\nvar redWin = Titanium.UI.createWindow({ backgroundColor: \"red\"});\n\nvar baseUITab = Ti.UI.createTab({\n title: 'base_ui_title',\n window: redWin\n});\n\ntabGroup.addTab(baseUITab);\n\ntabGroup.addEventListener('postlayout', function (){\n tabGroup.close(); // now it works\n});\n\ntabGroup.open();\n{code}", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-28T15:32:53.000+0000", "updated": "2013-01-28T15:32:53.000+0000" }, { "id": "236199", "author": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "body": "You are right, thank you.", "updateAuthor": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-01-28T15:38:32.000+0000", "updated": "2013-01-28T15:38:32.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }