{ "id": "155104", "key": "TIMOB-20457", "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": "2016-08-09T16:06:55.000+0000", "created": "2016-02-24T18:31:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alloy", "gradient" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T17:41:58.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": "h6.Issue Description\r\nGradient angles calculated incorrectly when start/endpoint specified as %\r\n\r\nh6.Steps to replicate\r\n# Create a new alloy default application\r\n# open views/index.xml\r\n# replace the code with the next:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n# open styles/index.tss\r\n# replace the code with the next:\r\n{code}\r\n\".someclass\": { \r\n\tbackgroundGradient: { \r\n\t\ttype: \"linear\", \r\n\t\tbackfillStart: true, \r\n\t\tbackfillEnd: true, \r\n\t\tstartPoint: { x:'100%', y: '0%' }, \r\n\t\tendPoint: { x: '0%', y:'100%'}, \r\n\t\tcolors: [{ \r\n\t\t\tcolor: \"black\", \r\n\t\t\toffset: 0.0\t\r\n\t\t}, \r\n\t\t{ \r\n\t\t\tcolor: \"black\", \r\n\t\t\toffset: 0.48\t\r\n\t\t}, \r\n\t\t{ \r\n\t\t\tcolor: \"white\", \r\n\t\t\toffset: 0.52 \r\n\t\t}, \r\n\t\t{ \r\n\t\t\tcolor: \"white\", \r\n\t\t\toffset: 1 \r\n\t\t}] \r\n\t} \r\n}\r\n{code}\r\n# Run\r\n# The gradient is not from the left corner to the right corner (image attached)\r\n\r\nh6. Expected result\r\nThe gradient should be from the left corner to the right corner \r\n", "attachment": [ { "id": "58313", "filename": "Simulator Screen Shot 24.02.2016 12.29.13 p.m..png", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-24T18:30:31.000+0000", "size": 36815, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: gradient percentage units are not accurate", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI 5.2.0\r\nSDK 5.2.0GA\r\niOS Simulator 9.1\r\nXcode 7.2", "closedSprints": [ { "id": 585, "state": "closed", "name": "2016 Sprint 5 SDK", "startDate": "2016-02-27T01:30:43.377Z", "endDate": "2016-03-12T01:30:00.000Z", "completeDate": "2016-03-14T11:50:17.995Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "378204", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rramirez] This isn't actually a bug , you are correct to assume that it should start from the left corner(i thought the same), however if you take a look [here|https://developer.apple.com/library/ios/documentation/General/Conceptual/Devpedia-CocoaApp/CoordinateSystem.html] on iOS the x and y axis start from the top left corner as oppose to the bottom left corner like they do on mac OS. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-29T22:10:15.000+0000", "updated": "2016-02-29T22:10:36.000+0000" }, { "id": "415574", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T17:41:58.000+0000", "updated": "2017-03-24T17:41:58.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }