{ "id": "99222", "key": "TIMOB-10447", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-15T17:43:44.000+0000", "created": "2012-08-14T17:12:28.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity", "qe-mw082012" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "19923", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "91236", "key": "TIMOB-8964", "fields": { "summary": "MobileWeb: Add nav bar parity for Ti.UI.Window", "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": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-15T17:43:44.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "add TabGroup barColor support\r\n\r\nworks on ios, not a regression\r\n\r\ntest steps:\r\n\r\n1. run code:\r\n\r\n{code}\r\nvar getRandomColor = function()\r\n{\r\n\treturn \"#\" + Math.random().toString(16).slice(2, 8);\r\n};\r\n\r\nfunction createTabGroupObject() {\r\n\tvar tabGroupObject = {};\r\n\r\n\ttabGroupObject.window = Ti.UI.createWindow();\r\n\r\n\ttabGroupObject.tabGroup = Ti.UI.createTabGroup({barColor:getRandomColor()});\r\n\ttabGroupObject.window.add(tabGroupObject.tabGroup);\r\n\r\n\ttabGroupObject.addTabFromString = function(string) {\r\n\t\tvar color = getRandomColor();\r\n\t\t\r\n\t\tvar tabWindow = Ti.UI.createWindow({\r\n\t\t\tbackgroundColor : color,\r\n\t\t\ttitle : string\r\n\t\t});\r\n\r\n\t\tvar tab = Ti.UI.createTab({\r\n\t\t\twindow : tabWindow,\r\n\t\t\ttitle : string,\r\n\t\t\tborderWidth : 1,\r\n\t\t\tborderColor: 'black',\r\n\t\t\tbackgroundColor : color\r\n\t\t});\r\n\r\n\t\ttabGroupObject.tabGroup.addTab(tab);\r\n\t\ttabGroupObject['tab' + string] = tab;\r\n\t};\r\n\r\n\ttabGroupObject.open = function() {\r\n\t\ttabGroupObject.window.open();\r\n\t\ttabGroupObject.tabGroup.open();\r\n\t};\r\n\r\n\treturn tabGroupObject;\r\n}\r\n\r\nvar tabGroupObject = createTabGroupObject();\r\n\r\ntabGroupObject.addTabFromString('Checkout');\r\ntabGroupObject.addTabFromString('Return');\r\n\r\ntabGroupObject.open();\r\n{code}\r\n\r\nexpected result:\r\n\r\ntop bar should have random color, currently it is only grey", "attachment": [ { "id": "30495", "filename": "api docs.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T17:14:27.000+0000", "size": 21466, "mimeType": "image/png" }, { "id": "30494", "filename": "barColor.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T17:12:28.000+0000", "size": 103583, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: TabGroup: provide support for barColor property", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.1\r\nTitanium SDK: 2.1.1, 2.1.2.v20120809183109\r\nOS: Mountain Lion\r\nBrowsers Tested: Chrome", "comment": { "comments": [ { "id": "214509", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The work-around is to set the barColor of the window.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T17:56:08.000+0000", "updated": "2012-08-14T17:56:08.000+0000" }, { "id": "422062", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-15T17:43:44.000+0000", "updated": "2017-06-15T17:43:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }