{ "id": "113666", "key": "TIMOB-13734", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2013-05-01T19:49:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "imageView" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:16.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": "Our [documentation|http://docs.appcelerator.com/titanium/3.0/#!/guide/Images_and_ImageView_APIs-section-29004912_ImagesandImageViewAPIs-TheImageView] says that when you have height and width set on an imageView, it should scale image without changing its aspect ratio.\r\n\r\nThis worked correctly in 2.1.4.GA, but is stretching the image as of 3.0.0.GA (see attached screenshot).\r\n\r\nh4. Steps to reproduce:\r\n1. Run the code below with 3.0.0.GA or 3.0.1.GA.\r\n2. Notice that the image is stretched\r\n3. Run the code below with 2.1.4.GA\r\n4. Notice that the image is not stretched as seen in the [documentation|http://docs.appcelerator.com/titanium/3.0/#!/guide/Images_and_ImageView_APIs-section-29004912_ImagesandImageViewAPIs-TheImageView].\r\n\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.open();\r\n\r\nvar iv = Ti.UI.createImageView({\r\n\timage: \"KS_nav_ui.png\",\r\n\theight: 200,\r\n\twidth: 50,\r\n\tbackgroundColor: 'yellow'\r\n});\r\nwin.add(iv);\r\n{code}", "attachment": [ { "id": "37990", "filename": "Screen Shot 2013-05-01 at 12.50.09 PM.png", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-01T19:51:10.000+0000", "size": 103334, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ImageView - changes image aspect ratio when scaling", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "h4. Not working correctly\r\nTiSDK 3.0.0.GA\r\nTiSDK 3.1.0.GA\r\n\r\nh4. Working correctly\r\nTiSDK 2.1.4.GA\r\n", "comment": { "comments": [ { "id": "253990", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-3749 is the ticket that introduced this behavior change to make the imageView behave more like the web image view. Android has already made the change and MW has a parity ticket. Would mark this as wont fix or convert it to TIDOC for doc update.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-25T06:02:50.000+0000", "updated": "2013-05-25T06:02:50.000+0000" }, { "id": "258241", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "BlackBerry defaults to Fill so we do the stretch behavior. If we need to support other scaling we can open parity bug.", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-17T20:03:49.000+0000", "updated": "2013-06-17T20:03:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }