{ "id": "107731", "key": "AC-2437", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-02-02T01:09:22.000+0000", "created": "2013-01-11T03:56:15.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:28.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": [], "description": "Ti.UI.iPhone.SystemButtonStyle.BAR and Ti.UI.iPhone.SystemButtonStyle.DONE both have integer value 2.", "attachment": [], "flagged": false, "summary": "SystemButtonStyle.BAR and SystemButtonStyle.DONE have same value", "creator": { "name": "michaelrushton", "key": "michaelrushton", "displayName": "Michael Rushton", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "michaelrushton", "key": "michaelrushton", "displayName": "Michael Rushton", "active": true, "timeZone": "Europe/London" }, "environment": "Mac OSX 10.8.2.\r\nTitanium Studio 3.0.1\r\nTitanium SDK 3.0.0.GA", "comment": { "comments": [ { "id": "236329", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "What iOS version was this tested on? (either simulator or actual device)\n\nHope hearing from you soon, Michael.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-28T23:29:20.000+0000", "updated": "2013-01-28T23:29:20.000+0000" }, { "id": "236405", "author": { "name": "michaelrushton", "key": "michaelrushton", "displayName": "Michael Rushton", "active": true, "timeZone": "Europe/London" }, "body": "Hi, sorry, it was iOS 6.", "updateAuthor": { "name": "michaelrushton", "key": "michaelrushton", "displayName": "Michael Rushton", "active": true, "timeZone": "Europe/London" }, "created": "2013-01-29T09:18:36.000+0000", "updated": "2013-01-29T09:18:36.000+0000" }, { "id": "236446", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks Michael, I'm not entirely sure to follow here.\n\nFrom docs a [BAR|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-BAR] is used with ButtonBar or TabbedBar only and,\n[DONE|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-DONE] is used in toolbars and navigation bars, which means constant value is for one of each item. What UI object do you use? Is there a conflict with contants being mixed up? Can you please post a simple sample so I can understand better.\n\n", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-29T17:53:45.000+0000", "updated": "2013-01-29T17:53:45.000+0000" }, { "id": "236987", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We can't escalate incomplete issues. Please review and complete [Jira checklist|http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist].\r\n", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-02T01:09:22.000+0000", "updated": "2013-02-02T01:09:22.000+0000" }, { "id": "286882", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe test this issue with the test code below and reproduced the reported scenario. However, it is not a Titanium bug. As per our documentation [SystemButtonStyle.BAR | http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-BAR] and [SystemButtonStyle.DONE | http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-DONE] are same but have different usages.\r\n\r\n\r\n\r\n\r\nh5. Test Environment:\r\n\r\nMac OS X 10.8.6\r\nTi SDK 3.2.0.GA\r\nTi CLI 3.2.0\r\nIOS simulator 7.0.3 \r\n\r\n\r\nh5. Test Code\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Audio Test',\r\n backgroundColor:'#fff',\r\n layout: 'vertical'\r\n});\r\n \r\n// Create tabbed Bar\r\n \r\nvar bb1 = Titanium.UI.createTabbedBar({\r\n labels:['One', 'Two', 'Three'],\r\n backgroundColor:'#336699',\r\n top:50,\r\n style: Ti.UI.iPhone.SystemButtonStyle.BAR,\r\n height:25,\r\n width:200\r\n});\r\n \r\n// Create button using Ti.UI.iPhone.SystemButtonStyle.DONE\r\nvar backButton = Titanium.UI.createButton({\r\n style: Ti.UI.iPhone.SystemButtonStyle.DONE,\r\n title: \"Back\", \r\n width: 100,\r\n backgroundColor:'pink',\r\n });\r\n \r\n // Show same value in Ti.api.info\r\n \r\nTi.API.info(' Bar Value '+bb1.style);\r\nTi.API.info('DoneValue '+backButton.style);\r\n \r\n// Add to parent\r\n \r\nwin.add(backButton);\r\nwin.add(bb1);\r\nwin.open();\r\n{code}\r\n\r\nThanks ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T04:50:16.000+0000", "updated": "2014-01-15T19:10:03.000+0000" }, { "id": "288318", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Invalid issue.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-15T19:10:13.000+0000", "updated": "2014-01-15T19:10:13.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }