{ "id": "61385", "key": "TIMOB-753", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-11T02:30:45.000+0000", "created": "2011-04-15T02:35:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_tabgroup", "qe-review", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "19851", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-09-11T02:30:45.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": "{html}

If a user re-arranges tabs via the edit button in the more\nwindow then you are unable to fetch the new order to return the app\nto the previous state on close.

\n

tabGroup.tabs property is always in the order they were\noriginally set.

\n

Can I suggest we add an index property to Titanium.UI.Tab? Or\nmaybe a property on Titanium.UI.TabGroup?

{html}", "attachment": [], "flagged": false, "summary": "iPhone: Unable to to fetch order of tabs within a tabGroup", "creator": { "name": "jordandelaune", "key": "jordandelaune", "displayName": "Jordan de Laune", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jordandelaune", "key": "jordandelaune", "displayName": "Jordan de Laune", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "161038", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug Scrub: Valid. No test case exists", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-28T16:37:36.000+0000", "updated": "2011-07-28T16:37:36.000+0000" }, { "id": "214074", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with the iOS simulator using TiSDK 2.2.0v20120810194112 with TiStudio 2.1.1.201207271312, issue seems to be fixed. Here is the code that I used:\r\n\r\n{code}\r\nfunction returnWindow()\r\n{\r\n return Ti.UI.createWindow({backgroundColor: 'white'});\r\n}\r\n\r\nfunction createTab(_i)\r\n{\r\n return Ti.UI.createTab({window: returnWindow(), title: 'Tab ' + _i});\r\n}\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nfor (var i = 0; i < 10; i++)\r\n{\r\n var tab = createTab(i);\r\n \r\n tabGroup.addTab(tab);\r\n}\r\n\r\ntabGroup.open();\r\n\r\n\r\nsetInterval(function()\r\n{\r\n var tabs = tabGroup.tabs;\r\n var string = '';\r\n \r\n for (var i = 0; i < tabs.length; i++)\r\n {\r\n string += ' | ' + tabs[i].title;\r\n }\r\n \r\n Ti.API.info('tabGroup.tabs: ' + string);\r\n \r\n}, 5000);\r\n{code}", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-13T11:22:22.000+0000", "updated": "2012-08-13T11:22:22.000+0000" }, { "id": "217126", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120830182512\r\nStudio:2.2.0.v20120830182512\r\nDevices: iOS simulator, Android Emulator", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T02:31:07.000+0000", "updated": "2012-08-31T02:31:07.000+0000" }, { "id": "218341", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T02:28:39.000+0000", "updated": "2012-09-11T02:28:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }