{ "id": "140711", "key": "ALOY-1191", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-12-02T16:58:21.000+0000", "created": "2014-12-01T14:25:33.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16595", "name": "Alloy 1.5.1", "archived": false, "released": true, "releaseDate": "2014-10-01" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2018-03-07T22:28: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": "12600", "name": "Samples & Templates" } ], "description": "Steps:\r\n1. Run the https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/theming_widgets sample app on iOS and Android and observe star-rating images \r\n\r\nResults: Rating images are stretched (see attached).\r\nExpected: Rating images appear at their native aspect ratios.\r\n\r\nNote: I think this is probably behaving as expected/designed as a test app, but still looks off. One solution is to remove either the height or width TSS style settings in the theme or widget's styles/star.tss file, so the image is resized proportionately,\r\n\r\n{code}\r\n'.star': {\r\n\theight:'32dp',\r\n \twidth: '10dp',\r\n\tleft:'8dp'\r\n}\r\n{code}\r\n\r\n", "attachment": [ { "id": "52893", "filename": "android_stretch.png", "author": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-01T14:25:33.000+0000", "size": 223131, "mimeType": "image/png" }, { "id": "52894", "filename": "ios_stretch.png", "author": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-01T14:25:33.000+0000", "size": 23620, "mimeType": "image/png" } ], "flagged": false, "summary": "Star-rating image aspect ratio styles", "creator": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "334118", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "[~tstatler] yes, the app is working as designed (ugly as that may be). I wanted to show that properties are merged when applying the theme, as well as showing how widget themes could override base style properties. ", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-12-01T15:02:49.000+0000", "updated": "2014-12-01T15:02:49.000+0000" }, { "id": "334132", "author": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Understood. I'd close the ticket invalid but don't appear to have that permission.", "updateAuthor": { "name": "tstatler", "key": "tstatler", "displayName": "Tim Statler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-01T17:24:01.000+0000", "updated": "2014-12-01T17:24:01.000+0000" }, { "id": "435353", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If this is incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-07T22:28:28.000+0000", "updated": "2018-03-07T22:28:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }