{ "id": "126773", "key": "TIMOB-16533", "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": null, "resolutiondate": null, "created": "2014-02-24T19:09:52.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:59.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "If you create a button view with an image:\r\n\r\n{code}\r\nvar button = Ti.UI.createButton({\r\n image : \"/images/my-icon.png\"\r\n width : Ti.UI.SIZE,\r\n height : 40\r\n title : \"My Button\"\r\n});\r\n{code}\r\nif the image is taller than 40, it will be cropped, rather than scale to fit in the available space. This isn't really an issue on iOS, as there are only two image size choices, but on Android, a 2x (XHDPI) image may be chosen, even if the interface is scaled by some other method. Thus the image may be cropped.\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Button does not resize image to fit within boundaries", "creator": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.2.0+", "comment": { "comments": [ { "id": "294431", "author": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed @\n\nhttps://github.com/appcelerator/titanium_mobile/pull/5376", "updateAuthor": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T19:24:01.000+0000", "updated": "2014-02-24T19:24:01.000+0000" }, { "id": "294459", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for submitting this pull request. In order for us to evaluate this pull request, we need a simple runnable test case along with the image illustrating the current issue so that we then can use the PR to verify that the issue has been fixed indeed.\n\nAgain, we appreciate all your effort and hard work.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T21:01:51.000+0000", "updated": "2014-02-24T21:01:51.000+0000" }, { "id": "295206", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering to evaluate this PR in the context of this ticket.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-03T02:42:23.000+0000", "updated": "2014-03-03T02:42:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }