{ "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.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:22:34.000+0000", "updated": "2011-04-15T03:22:34.000+0000" }, { "id": "162272", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h4.Associated HD ticket\r\nPRO customer relying on this, http://appc.me/c/APP-717823\r\n\r\nh4.Target environment\r\n{noformat}\r\n Product: Mobile SDK - Mobile 1.7.1\r\n Platform OS: iOS - Version 4.2\r\n{noformat}\r\n\r\nh4.Tested on\r\nEmulator iOS 4.x\r\n\r\nh4.Problem\r\nSimilar issue encountered where customer want to switch to a tab under the \"More...\" tab with contents of the window is not properly loaded.\r\n\r\nWindow inside the MoreTab has no view inside [image|http://imageshack.us/photo/my-images/593/windowinmore.png/].\r\n\r\nUsual view of that window [image|http://imageshack.us/photo/my-images/40/normalwindow.png/].\r\n\r\nOnce the number of tabs have decreased [image|http://imageshack.us/photo/my-images/641/windowwomore.png/].", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-08-09T17:26:21.000+0000", "updated": "2011-08-09T17:26:21.000+0000" }, { "id": "165506", "author": { "name": "liquidlight", "key": "liquidlight", "displayName": "Oliver Rowlands", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FYI: Just encountered the same problem with the continuous builds (1.7.3.v20110826161351). @wallneradam's solution solved my problem.", "updateAuthor": { "name": "liquidlight", "key": "liquidlight", "displayName": "Oliver Rowlands", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-09T10:19:10.000+0000", "updated": "2011-09-09T10:19:10.000+0000" }, { "id": "166119", "author": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I encountered the same problem with build 1.7.2.97c3689. @wallneradam's solution worked for me.\r\n\r\nI imagine that when initializing windows and UI elements within 'More' Tabs, Titanium is looking up the chain of windows for initialization information and the 'More' part of that chain is incomplete.", "updateAuthor": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-14T16:38:33.000+0000", "updated": "2011-09-14T16:38:33.000+0000" }, { "id": "175725", "author": { "name": "meinmotion", "key": "meinmotion", "displayName": "Remko Posthuma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Appcelerator Team, Please implement Wallneradam solution in the upcoming releases. The behavior of the setActiveTab with more then 5 tab groups is a bug and the solution is in this post, so why wait to implement this? Now I need to implement it myself every time a new version is published. ", "updateAuthor": { "name": "meinmotion", "key": "meinmotion", "displayName": "Remko Posthuma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-11T16:34:44.000+0000", "updated": "2011-12-11T16:34:44.000+0000" }, { "id": "175726", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Remko we cannot use code added to a JIRA. If you'd like to submit this as a patch then please sign our CLA and submit a pull request. [Guide to Contributing|http://wiki.appcelerator.org/display/guides/How+to+Contribute+Code]", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-11T17:07:13.000+0000", "updated": "2011-12-11T17:07:13.000+0000" }, { "id": "177094", "author": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "body": ".", "updateAuthor": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-22T21:44:00.000+0000", "updated": "2011-12-22T22:01:11.000+0000" }, { "id": "209706", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed SDK 2.2.0.014b86f.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T12:44:15.000+0000", "updated": "2012-07-26T12:44:15.000+0000" }, { "id": "220877", "author": { "name": "jeffbonnes", "key": "jeffbonnes", "displayName": "Jeff Bonnes", "active": true, "timeZone": "Australia/Sydney" }, "body": "Still a problem in SDK 2.1.3RC", "updateAuthor": { "name": "jeffbonnes", "key": "jeffbonnes", "displayName": "Jeff Bonnes", "active": true, "timeZone": "Australia/Sydney" }, "created": "2012-09-26T09:30:47.000+0000", "updated": "2012-09-26T09:30:47.000+0000" }, { "id": "222289", "author": { "name": "nicolasg", "key": "nicolasg", "displayName": "Nicolas Gomez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I know there may be rights issues, but this bug is VERY bad. Can someone PLEASE provide a fix.", "updateAuthor": { "name": "nicolasg", "key": "nicolasg", "displayName": "Nicolas Gomez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-05T18:42:30.000+0000", "updated": "2012-10-05T18:42:30.000+0000" }, { "id": "249019", "author": { "name": "vitr", "key": "vitr", "displayName": "Vitr", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any news regarding this bug? I have the same problem in the latest SDK Version (3.1) and it is really annoying :-(", "updateAuthor": { "name": "vitr", "key": "vitr", "displayName": "Vitr", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-25T13:37:34.000+0000", "updated": "2013-04-25T13:37:34.000+0000" }, { "id": "258456", "author": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seriously? This bug, for which a fix was already given, is still unaddressed after *2 years*??", "updateAuthor": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-18T20:49:30.000+0000", "updated": "2013-06-18T20:49:30.000+0000" }, { "id": "259269", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I reproduced the issue, using:\nAppcelerator Studio, build: 3.1.1.201306131423\nTitanium SDK, build: 3.1.1GA\niPhone 5 iOS 7.0\nXcode5\nCLI 3.1.1\nKitchenSink Version 3.1.1.GA\n\n{code}\nvar tg = Ti.UI.createTabGroup();\nvar fw = null;\nfor (var i=0; i<9; i++) {\n var f = function(i) {\n var w = Ti.UI.createWindow({\n title: 'Tab ' + i,\n backgroundColor: '#fff'\n });\n var t = Ti.UI.createTab({\n title: w.title,\n window: w,\n icon:'KS_nav_ui.png'\n });\n \n if (i > 0) {\n var l = Ti.UI.createLabel({\n text: w.title + ' Label'\n });\n w.add(l);\n \n var btn = Ti.UI.createButton({\n top: i*40 - 20, height: 35,\n left: 100, width: 120,\n title: 'Jump to Tab ' + i\n });\n \n btn.addEventListener('click', function(e) {\n tg.setActiveTab(t);\n });\n \n fw.add(btn);\n \n } else {\n fw = w;\n }\n \n tg.addTab(t);\n }(i);\n}\n \ntg.open();\n\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-24T21:57:15.000+0000", "updated": "2013-06-24T21:57:15.000+0000" }, { "id": "259271", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kelek] Apologies, but we couldn't use the previously posted solution. I have scheduled this for an upcoming release.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-24T22:02:01.000+0000", "updated": "2013-06-24T22:02:01.000+0000" }, { "id": "262742", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4469", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-22T22:55:15.000+0000", "updated": "2013-07-22T22:55:15.000+0000" }, { "id": "275391", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested with:\r\nOSX: 10.8.5\r\nXcode:5.0\r\nAppcelerator Studio: 3.2.0.201310152355\r\nSDK:3.2.0.v20131016191202\r\nacs:1.0.7\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processo:1.0.3", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-17T07:33:32.000+0000", "updated": "2013-10-17T07:33:32.000+0000" }, { "id": "328709", "author": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue, although fixed last year, appears to be back in Titanium 3.4.0.GA + iOS 8.0.2", "updateAuthor": { "name": "kelek", "key": "kelek", "displayName": "Michael McDonald", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T22:31:40.000+0000", "updated": "2014-10-20T22:31:40.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }