{ "id": "63183", "key": "TIMOB-2551", "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": "15564", "description": "2013 Sprint 15 API", "name": "2013 Sprint 15 API", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-23T21:03:11.000+0000", "created": "2011-04-15T03:22:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_tabgroup", "qe-testadded", "supportTeam" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-10-20T22:31:40.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": "h6.Problem\r\nThere is a bug with tabGroup. When I want to switch to a tab\r\nunder the \"More...\" tab with tabGroup.setActiveTab, the content of\r\nthe window is not initialized. If I first click to More then try to\r\nswitch with setActiveTab it works good.\r\n\r\nh6.Small snippet\r\n
An example. Click the last button.
\r\n{code}\r\nvar tg = Ti.UI.createTabGroup();\r\nvar fw = null;\r\nfor (var i=0; i<9; i++) {\r\n var f = function(i) {\r\n var w = Ti.UI.createWindow({\r\n title: 'Tab ' + i,\r\n backgroundColor: '#fff'\r\n });\r\n var t = Ti.UI.createTab({\r\n title: w.title,\r\n window: w,\r\n icon:'KS_nav_ui.png'\r\n });\r\n\r\n if (i > 0) {\r\n var l = Ti.UI.createLabel({\r\n text: w.title + ' Label'\r\n });\r\n w.add(l);\r\n\r\n var btn = Ti.UI.createButton({\r\n top: i*40 - 20, height: 35,\r\n left: 100, width: 120,\r\n title: 'Jump to Tab ' + i\r\n });\r\n\r\n btn.addEventListener('click', function(e) {\r\n tg.setActiveTab(t);\r\n });\r\n\r\n fw.add(btn);\r\n\r\n } else {\r\n fw = w;\r\n }\r\n\r\n tg.addTab(t);\r\n }(i);\r\n}\r\n\r\ntg.open();\r\n{code}\r\n\r\nh6.Additional details\r\nAll Titanium version is affected. I've tried this with the\r\nlatest version from git as well. (With the latest Ti from git some tab has no title randomly, but\r\nit is another bug I think)\r\n\r\nh6.Associated thread\r\nhttp://developer.appcelerator.com/question/128978/how-i-can-set-active-tab-if-tabgroup-have-more-than-5-tabs", "attachment": [], "flagged": false, "summary": "iOS: Using tabGroup.setActiveTab to switch to a tab in \"More...\" fails to initialize window", "creator": { "name": "wallneradam", "key": "wallneradam", "displayName": "wallneradam", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wallneradam", "key": "wallneradam", "displayName": "wallneradam", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128749", "author": { "name": "wallneradam", "key": "wallneradam", "displayName": "wallneradam", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*EDIT BY STEVE:* Code removed. Developer who implements this feature should not look at or use this code due to possible rights issues.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:33.000+0000", "updated": "2012-01-26T14:18:21.000+0000" }, { "id": "128750", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}FYI - Unable to reproduce with 2.2 API's on Android with latest\npull of 1.5.1 from master @ 12/11/2010 1:10AM CST.