{ "id": "104497", "key": "TIMOB-11684", "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": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14784", "description": "2012 Sprint 25 API", "name": "2012 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-12-04T21:59:38.000+0000", "created": "2012-11-07T06:05:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-ios100112" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "22578", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "101376", "key": "TIMOB-10946", "fields": { "summary": "Android: TabGroup focus event is not fired when setActiveTab is called on the first tab", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:16.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": "TabGroup focus event is not fired when setActiveTab is called on the first tab for the first time.\r\nThis is not regression since the issue occurs as far as 2.1.2 GA as well.\r\n\r\nSteps to reproduce:\r\n\r\n1. Create an app with the code below.\r\n2. Launch the app and see the logs.\r\n\r\nExpected:\r\nLog message should be printed for the first time also.\r\n\r\nActual behavior:\r\nLog is not printed.\r\n\r\n\t\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n title: 'Win 1'\r\n});\r\n \r\nvar tab1 = Ti.UI.createTab({ \r\n icon: 'KS_nav_ui.png',\r\n title: 'Tab 1',\r\n window: win1\r\n});\r\n \r\nvar win2 = Ti.UI.createWindow({\r\n title: 'Win 2'\r\n});\r\n \r\nvar tab2 = Ti.UI.createTab({ \r\n icon: 'KS_nav_views.png',\r\n title: 'Tab 2',\r\n window: win2\r\n});\r\n \r\nvar tabGroup = Ti.UI.createTabGroup({\r\n \r\n});\r\n \r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.setActiveTab(tab1);\r\ntabGroup.open();\r\ntabGroup.addEventListener('focus', function(e) {\r\n Ti.API.info('--------------------Focus tab index: ' + e.index);\r\n});\r\n\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: TabGroup - TabGroup focus event is not fired when setActiveTab is called on the first tab for the first time", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.0.0.v20121105141612\r\nStudio: 2.1.3.201209111418\r\nDevices: iPhone4s(v 5.1)\r\nOS: OSX 10.8", "comment": { "comments": [ { "id": "229952", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "focus and open event handlers for top level containers (window, tabgroup) must be defined before open is called on the container.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T21:59:38.000+0000", "updated": "2012-12-04T21:59:38.000+0000" }, { "id": "241918", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "closing as the bug is invalid", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-13T06:53:22.000+0000", "updated": "2013-03-13T06:53:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }