{ "id": "81644", "key": "TIMOB-5766", "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": "12086", "description": "", "name": "Sprint 2011-46", "archived": true, "released": true, "releaseDate": "2011-11-21" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T16:41:14.000+0000", "created": "2011-10-17T07:07:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_tabbedbar", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-05T16:41:14.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": "h3.Problem\r\nTabbedBar does not consistently fire click event.\r\n\r\nh3.Reproducible Steps\r\n1. Execute the sample code\r\n2. Click on the TabbedBar buttons 4-5 times (after the 2nd time the event won't be fired anymore)\r\n\r\nh3.Sample Code\r\n{code}\r\nvar win = {};\r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar rootWin = Titanium.UI.createWindow({\r\n \r\n});\r\n\r\n\r\nwin.main = Titanium.UI.createWindow({ \r\n});\r\nwin.rootNav = Titanium.UI.iPhone.createNavigationGroup({\r\n window: win.main\r\n});\r\nrootWin.add(win.rootNav);\r\nrootWin.open();\r\n\r\nfunction showWin(){\r\n var newWin = Titanium.UI.createWindow({\r\n }); \r\n\r\n var tb2 = Titanium.UI.createTabbedBar({\r\n labels:[\r\n {title: 'A', width: 100, enabled:true},\r\n {title: 'B', width: 100, enabled:true},\r\n {title: 'C', width: 100, enabled:true} \r\n ],\r\n });\r\n tb2.addEventListener('click', function(e){\r\n alert('I work!');\r\n\r\n });\r\n \r\n newWin.setToolbar([tb2]); \r\n\r\n win.rootNav.open(newWin);\r\n\r\n}\r\n\r\nshowWin();\r\n{code}\r\n\r\nh3.Associated HelpDesk Ticket\r\nhttp://appc.me/c/APP-318632\r\n", "attachment": [], "flagged": false, "summary": "iOS: tabbedBar doesn't consistently fire click events", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 4.3, Simulator\r\nTitanium SDK 1.7.2, 1.8.0.v20111014141415", "comment": { "comments": [ { "id": "173942", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "pull pending #764", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-23T16:10:52.000+0000", "updated": "2011-11-23T16:10:52.000+0000" }, { "id": "175376", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112080131\r\n
Ti Mob SDK 1.8.0.1.v20111207180431\r\n
OSX Lion\r\niPhone 4S OS 5.0.1\r\n\r\nExpected behavior of segment control firing click events is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T10:29:36.000+0000", "updated": "2011-12-08T10:29:36.000+0000" }, { "id": "178220", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopened to edit labels\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T15:10:55.000+0000", "updated": "2012-01-05T15:10:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }