{ "id": "99640", "key": "TIMOB-10735", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-01-27T21:27:53.000+0000", "created": "2012-08-22T23:43:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "exalture" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "45135", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "122421", "key": "TIMOB-15707", "fields": { "summary": "iOS: Left alignment for scaled images", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:13:23.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you use width or height = Ti.UI.SIZE in an imageview, then the image is sized correctly but not its containing view.\r\nThe example shows that it s also happening with xhr\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\n\r\nvar fileName = \"http://3.bp.blogspot.com/_Z-tqVTd9fPI/TRzjXBKIKvI/AAAAAAAACEo/wflE9APHFWE/s200/steve_jobs.jpg\";\r\nvar xhr = Titanium.Network.createHTTPClient();\r\n \r\nimage = Ti.UI.createImageView({\r\n width:Ti.UI.SIZE,\r\n backgroundColor:'blue',\r\n image:fileName,\r\n height:80\r\n});\r\n\r\nwin.add(image);\r\n\r\nxhr.onload = function() {\r\n image.image = this.responseData;\r\n};\r\nxhr.open('GET', fileName);\r\n\r\nwin.open();\r\n\r\n// xhr.send();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: ImageView with height or width of Ti.UI.SIZE sizes improperly", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 2.2.0 (master)\r\nios 5.1", "comment": { "comments": [ { "id": "415096", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate and links to the related ticket have been provided above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:13:23.000+0000", "updated": "2017-03-22T22:13:23.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }