{ "id": "139589", "key": "AC-1052", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-06T06:06:35.000+0000", "created": "2014-11-12T13:03:05.000+0000", "labels": [ "TCSupportTriage", "attributedString", "color" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:23.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The following test case shows that the {{color}} property of a {{Ti.UI.Label}} *sometimes* overrides color set in the Attributed String, while I expect the color always to be the default.\r\n\r\nh1. Test Case\r\nRemove the comments before {{top:20}} and you'll see *ipsum* is no longer red, but green like the rest of the text.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: '#ddd',\r\n});\r\n\r\nwin.add(Ti.UI.createLabel({\r\n // top: 20,\r\n color: 'green',\r\n attributedString: Ti.UI.iOS.createAttributedString({\r\n text: 'Bacon ipsum dolor',\r\n attributes: [{\r\n type: Ti.UI.iOS.ATTRIBUTE_FOREGROUND_COLOR,\r\n value: 'red',\r\n range: [6, 5]\r\n }, {\r\n type: Ti.UI.iOS.ATTRIBUTE_FONT,\r\n value: {\r\n fontSize: 17\r\n },\r\n range: [6, 5]\r\n }]\r\n })\r\n}));\r\n\r\nwin.open();{code}\r\n\r\nThe same is probably true for {{TextField}} and {{TextArea}} as well.", "attachment": [], "flagged": false, "summary": "iOS: color-property sometimes overrides color set in attributedString", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "3.4.1.RC", "comment": { "comments": [], "maxResults": 3, "total": 3, "startAt": 0 } } }