{ "id": "144402", "key": "TIMOB-18544", "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": "2015-02-09T09:18:12.000+0000", "priority": null, "labels": [ "AspectRatio", "border", "imageView", "ios" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:54:51.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": [], "description": "After rotation, imageView.getSize().width and imageView.getSize().height don't keep the image's aspect ratio. This can also be seen with the border around the image. To make things more confusing, the behavior is different per image (see red border in screen shots).", "attachment": [ { "id": "54048", "filename": "iOS Simulator Screen Shot Feb 9, 2015, 1.06.13 AM.png", "author": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-09T09:18:12.000+0000", "size": 255849, "mimeType": "image/png" }, { "id": "54049", "filename": "iOS Simulator Screen Shot Feb 9, 2015, 1.06.34 AM.png", "author": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-09T09:18:12.000+0000", "size": 371148, "mimeType": "image/png" }, { "id": "54046", "filename": "iOS Simulator Screen Shot Feb 9, 2015, 1.12.03 AM.png", "author": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-09T09:18:12.000+0000", "size": 1077378, "mimeType": "image/png" }, { "id": "54047", "filename": "iOS Simulator Screen Shot Feb 9, 2015, 1.12.07 AM.png", "author": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-09T09:18:12.000+0000", "size": 677902, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ImageView not keeping aspect ratio after rotation", "creator": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone 5 and 5s simulators with iOS 8.1. ", "comment": { "comments": [ { "id": "342517", "author": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "body": "index.xml\r\n-------------\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\nindex.js\r\n----------\r\nvar imageView = Ti.UI.createImageView({\r\n image:'image1.jpg',\r\n autorotate : true,\r\n borderColor: 'red',\r\n borderWidth: 2\r\n});\r\n\r\n$.container.add(imageView);\r\n\r\nimageView.addEventListener('postlayout', function() {\r\n Ti.API.info(\"imageView.postlayout\");\r\n});\r\n\r\n$.index.addEventListener('postlayout', function() {\r\n Ti.API.info(\"index.postlayout\");\r\n});\r\n\r\n$.index.open();\r\n\r\nindex.tss\r\n-----------\r\n\r\n\"#container\": {\r\n width : Titanium.UI.FILL,\r\n height : Titanium.UI.FILL\r\n}", "updateAuthor": { "name": "azago1", "key": "azago1", "displayName": "Aviram Zagorie", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-09T09:20:29.000+0000", "updated": "2015-02-09T09:20:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }