{ "id": "79849", "key": "TIMOB-5176", "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": "12078", "description": "", "name": "Sprint 2011-38", "archived": true, "released": true, "releaseDate": "2011-09-26" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-26T15:18:12.000+0000", "created": "2011-08-30T13:44:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "imageview", "merged-v8", "parity", "scale", "stage" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-10-31T22:37:24.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Given the attached large photo \"julia.jpg\" and this app.js:\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\n\r\nvar v = Ti.UI.createView({\r\n\ttop: \"33%\", height: \"33%\", left: \"33%\", right: \"33%\",\r\n\tbackgroundColor: \"blue\"\r\n});\r\n\r\nvar img = Ti.UI.createImageView({image: \"julia.jpg\"});\r\nv.add(img);\r\n\r\nwin.add(v);\r\nwin.open();\r\n{code}\r\n\r\nOur iOS implementation will scale that graphic to make it fit and look good in the ImageView. Our Android implementation won't scale it at all but rather just show part of the center of the image.", "attachment": [ { "id": "22729", "filename": "julia.jpg", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-08-30T13:46:44.000+0000", "size": 739261, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android images in imageview won't scale without explicit width and height", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "166582", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Turns out this was basically part of TIMOB-5177. Pull request ready:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/485", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-21T17:03:44.000+0000", "updated": "2011-09-21T17:03:44.000+0000" }, { "id": "167028", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "test, review, merge.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-26T15:18:12.000+0000", "updated": "2011-09-26T15:18:12.000+0000" }, { "id": "169272", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing.\r\n\r\nFix verified on Nexus One 2.2.2 with SDK 1.8.0.v20111013161411", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-13T16:26:58.000+0000", "updated": "2011-10-13T16:26:58.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }