{ "id": "62360", "key": "TIMOB-1728", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-25T17:49:13.000+0000", "created": "2011-04-15T03:00:42.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "buttonbar", "event", "ios" ], "versions": [], "issuelinks": [ { "id": "19378", "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-07-26T22:20:05.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}

This worked fine in 1.4.0 but broke in 1.4.1. Try the code\nbelow:

\n
\nvar win = Ti.UI.currentWindow;\n\nvar btn1 = Titanium.UI.createButtonBar({\n    labels:[\"Test\"],\n    backgroundImage: 'none',\n    backgroundColor:'#0d8d00',\n    width:70,\n});\nbtn1.addEventListener('click', function(e) {\n    alert(\"foo\");\n});\nwin.rightNavButton = btn1;\n
\n

Removing that addEventListener call fixes things.

{html}", "attachment": [], "flagged": false, "summary": "1.4.1 regression: Calling addEventListener on a buttonBar resets its styling", "creator": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126476", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested 1.6.0GM. Test in bugtests.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:42.000+0000", "updated": "2011-04-15T03:00:42.000+0000" }, { "id": "209495", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce against SDK 2.2.0.014b86f on iPhone Sim 5.1.\r\n\r\nTest case:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar btn1 = Titanium.UI.createButtonBar({\r\n labels:[\"Test\"],\r\n backgroundImage: 'none',\r\n backgroundColor:'#0d8d00',\r\n width:70,\r\n});\r\nbtn1.addEventListener('click', function(e) {\r\n alert(\"foo\");\r\n});\r\nwin.rightNavButton = btn1;\r\n\r\nvar tg = Ti.UI.createTabGroup();\r\ntg.addTab(Ti.UI.createTab({\r\n window:win\r\n}));\r\ntg.open();\r\n{code}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T17:49:13.000+0000", "updated": "2012-07-25T17:49:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }