{ "id": "94033", "key": "TIMOB-9828", "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": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13417", "description": "Sprint 2012-13 API", "name": "Sprint 2012-13 API", "archived": true, "released": true, "releaseDate": "2012-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-03T00:29:28.000+0000", "created": "2012-06-28T04:07:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tabgroup", "qe-ios060112", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-03T14:18:26.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": "Removing the last tab from tabgroup does not refresh the screen and continues to show the window and title.\r\n\r\nThis is a regression.It works fine on 2.0.2\r\n\r\nSteps to Reproduce:\r\n\r\n1. Install the app on device and launch it.\r\n2. Click on label Remove Tab 1\r\n3. Click on label remove tab 2.\r\n\r\nExpected Result:\r\nAfter step 2, the Tab 1 should be removed.\r\nAfter step 3, the Tab 2 should be removed and a blank screen should be shown.\r\n\r\nActual Result:\r\nAfter step 2, the Tab 1 is removed.\r\nAfter step 3, the Tab 2 is removed but the window and title of tab 2 continues to show. Also, a warning is shown in the console.Please find attached the log file.\r\nOn sending the app to the background and reopening it again,it now shows the blank screen.\r\n\r\napp.js\r\n\r\n{code}\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n \r\nvar win1 = Titanium.UI.createWindow({  \r\n    title:'Tab 1',\r\n    backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({  \r\n    icon:'KS_nav_views.png',\r\n    title:'Tab 1',\r\n    window:win1\r\n});\r\n \r\nvar label1 = Titanium.UI.createLabel({\r\n    color:'#999',\r\n    text:'Remove Tab1',\r\n    font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n    textAlign:'center',\r\n    width:'auto'\r\n});\r\n \r\nlabel1.addEventListener('click', function() {\r\n    tabGroup.removeTab(tab1);\r\n    label1 = win1 = tab1 = null;\r\n});\r\n \r\nwin1.add(label1);\r\n\r\nvar win2 = Titanium.UI.createWindow({  \r\n    title:'Tab 2',\r\n    backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({  \r\n    icon:'KS_nav_ui.png',\r\n    title:'Tab 2',\r\n    window:win2\r\n});\r\n \r\nvar label2 = Titanium.UI.createLabel({\r\n    color:'#999',\r\n    text:'remove tab2',\r\n    font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n    textAlign:'center',\r\n    width:'auto'\r\n});\r\n \r\nlabel2.addEventListener('click', function() {\r\n    tabGroup.removeTab(tab2);\r\n    label2 = win2 = tab2 = null;\r\n});\r\n\r\nwin2.add(label2);\r\n \r\n//  add tabs\r\n \r\ntabGroup.addTab(tab1);  \r\ntabGroup.addTab(tab2);  \r\n \r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n", "attachment": [ { "id": "28773", "filename": "logs.txt", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-06-28T04:07:30.000+0000", "size": 866, "mimeType": "text/plain" }, { "id": "28774", "filename": "Screenshot.png", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-06-28T04:07:30.000+0000", "size": 10504, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: TabGroup - Removing the last tab from tabgroup does not refresh the screen.", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested with Titanium SDK: 2.1.0.v20120627151616\r\nTested with Titanium  Studio: 2.1.0.201206251749\r\nOS: 10.7.3\r\nDevices Tested: iPhone 3GS(v 5.0.1)", "comment": { "comments": [ { "id": "200784", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 2.1.0.v20120628121617 on iPad 3 and iPhone 4s.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-28T13:48:28.000+0000", "updated": "2012-06-28T13:48:28.000+0000" }, { "id": "201306", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-03T00:27:22.000+0000", "updated": "2012-07-03T00:27:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }