{ "id": "82123", "key": "TIMOB-6920", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-01-04T09:22:37.000+0000", "created": "2011-10-30T13:25:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14396", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84347", "key": "TIDOC-23", "fields": { "summary": "APIDoc: UI - document imageView hires property", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:08:11.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": "h2. Problem\r\n\r\nWhen setting the height of an imageView to {{height: 'auto'}} and {{hires: true}}, the imageView height expands the height of the window, instead of the height of the image.\r\n\r\nIt works correctly if {{hires: true}} is removed.\r\n\r\nSee attached screenshots, with hires and without.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javaScript|title=app.js}\r\nTi.UI.backgroundColor = '#fff';\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n\timage: 'noop',\r\n\ttop: 0,\r\n\twidth: 280,\r\n\thires: true,\r\n\theight: 'auto',\r\n\tbackgroundColor: 'green'\r\n});\r\n\r\nwin.add( imageView );\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "23947", "filename": "Screen Shot 2011-10-30 at 22.17.24.png", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-10-30T13:25:21.000+0000", "size": 124558, "mimeType": "image/png" }, { "id": "23948", "filename": "Screen Shot 2011-10-30 at 22.18.06.png", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-10-30T13:25:21.000+0000", "size": 124360, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: UI - imageView incorrect image height when hires property set to true", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "environment": "* Titanium SDK version: 1.8.0.1\r\n* Platform & version: iOS 5\r\n* Device Details: iOS simulator\r\n* Host Operating System: Mac OS X 10.7.2\r\n* Titanium Studio version: 1.0.7.201112152014", "comment": { "comments": [ { "id": "177224", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Hi Sindre\r\n\r\nThanks for raising this.\r\n\r\nCan you tell me, where did you find the imageView hires property documented? Was it just a single script in the KS?\r\n\r\nWould you test this code without modal enabled on the window, to determine whether or not it has any effect?\r\n\r\nI will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project.\r\n\r\nThanks in advance\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-26T17:19:24.000+0000", "updated": "2011-12-26T17:19:24.000+0000" }, { "id": "177537", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "I thought I saw it in the docs, but can't find it in the new docs, but you can find it in hi_res_image_remote.js in KS.\r\n\r\nDon't know why I had the modal:true in there. Removing it doesn't change anything. Updated testcase.", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-12-29T03:26:20.000+0000", "updated": "2011-12-29T03:26:20.000+0000" }, { "id": "177578", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sindre,\r\n\r\nThe hires property is documented here.\r\n\r\nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.ImageView.hires-property.html\r\n\r\nNote that it is only for use on remote images--images loaded from resources are already identified as hi-res or not hi-res by their filenames. In other words, the flag tells Titanium that the remote image is already at Retina resolution and should not be scaled automatically.\r\n\r\nFrom the looks of it, you're loading a local image, which may have undefined results. What effect were you trying to achieve?\r\n\r\nThanks,\r\n-Arthur\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-29T09:34:37.000+0000", "updated": "2011-12-29T09:34:37.000+0000" }, { "id": "177828", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "@aevans, you're right, my mistake. This issue can be closed.", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-01-03T02:06:57.000+0000", "updated": "2012-01-03T02:06:57.000+0000" }, { "id": "177932", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "Should be closed as Invalid not Fixed...", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-01-04T00:09:07.000+0000", "updated": "2012-01-04T00:09:07.000+0000" }, { "id": "414413", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:08:11.000+0000", "updated": "2017-03-21T21:08:11.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }