{ "id": "83298", "key": "TIMOB-6412", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-22T05:10:28.000+0000", "created": "2011-12-01T12:55:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "tbs-2.1.0" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" } ], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-04-22T05:10: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": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Both Android and iOS accept RGBA color definitions in the form:\r\n\r\n{{'rgba(_red_,_green_,_blue_,_alpha_)'}}\r\n\r\nHowever, Android appears to expect RGBA values 0-255, while iOS expects floating-point values from 0 to 1.\r\n\r\nSo\r\n\r\n{{'rgba(128,128,128,64)'}} \r\n\r\nYields a transparent medium-grey on Android, while on iOS you'd need to specify:\r\n\r\n{{'rgba(.5,.5,.5,.25)'}}\r\n\r\nStrangely enough, passing that iOS color value to Android results, not in a transparent color as might be expected, but opaque yellow. It appears on further testing that on Android, any spaces or non-digit characters in the string will have the same result, so:\r\n\r\n{{'rgba(128, 0,128,64)'}} ==> yellow\r\n{{'rgba(128,0,128,64)'}} ==> expected color\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Ti API: rgba() Color definitions use different units", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "183406", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was assigned to me because it was originally opened as an APIDoc bug. However, this is a parity issue.\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-16T09:42:22.000+0000", "updated": "2012-02-16T09:42:22.000+0000" }, { "id": "383418", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7955", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-20T21:09:27.000+0000", "updated": "2016-04-20T21:09:27.000+0000" }, { "id": "383630", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR merged", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-22T05:10:21.000+0000", "updated": "2016-04-22T05:10:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }