{ "id": "151959", "key": "AC-458", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-11-05T08:06:38.000+0000", "created": "2015-10-12T13:12:39.000+0000", "labels": [ "ImageView", "Scaling", "ios" ], "versions": [ { "id": "17033", "name": "Appcelerator Studio 4.3.1", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-05T08:48:34.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "According to the docs, setting width or height on an ImageView should cause it to scale the image.\r\nBut when setting the height to Ti.UI.FILL the image does not scale setting width to Ti.UI.FILL works fine. The problem exists when upscaling and downscaling.\r\n\r\nI Attached an example\r\nTo run sample:\r\n1. Create new Alloy project\r\n2. Copy attached index.xml to controllers\r\n3. Copy attached image to /assets/images\r\n4 Run project to iPad emulator\r\n\r\nWhen the app launches notice:\r\n1 Row upscales just fine (height=Ti.UI.FILL)\r\n2 Row does not upscale at all (width=Ti.UI.FILL)..\r\n3 Row downscales just fine (height=Ti.UI.FILL)\r\n4.Row downscales but ImageView also fills the width, so aligning to left or right is not possible(height=Ti.UI.FILL)\r\n\r\nExpected results\r\n1 Row images should upscale just like it does now (height=Ti.UI.FILL)\r\n2 Row images should upscale like Row 1 (width=Ti.UI.FILL)..\r\n3 Row images should downscale just like it does now (height=Ti.UI.FILL)\r\n4.Row images should downscale like Row 3 (height=Ti.UI.FILL)", "attachment": [ { "id": "56974", "filename": "aspect4.png", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2015-10-12T13:00:24.000+0000", "size": 13440, "mimeType": "image/png" }, { "id": "56975", "filename": "index.xml", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2015-10-12T13:00:05.000+0000", "size": 2765, "mimeType": "text/xml" }, { "id": "56973", "filename": "PastedGraphic-1.png", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2015-10-12T13:01:50.000+0000", "size": 145665, "mimeType": "image/png" } ], "flagged": false, "summary": "ImageView does not scale images correct", "creator": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "subtasks": [], "reporter": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "environment": "SDK 5.0.2.GA", "comment": { "comments": [ { "id": "368291", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~thomas.neerup@eg.dk],\r\n\r\nSpecifying either a width or height property for the Image view will scale its image(s) with the aspect ratio maintained, up to a maximum size that does not exceed its parent view. Please refer to this [link here|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ImageView]. It seems to me this is not an issue.\r\n\r\n*Testing Environment:*\r\nAppcelerator Command-Line Interface, version 5.0.4\r\nAppcelerator Studio, build: 4.3.3.201510212245\r\nTi sdk: 5.0.2\r\niOS Simulator: iPad\r\nAlloy version: 1.7.18\r\n\r\nThanks", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-10-29T12:14:34.000+0000", "updated": "2015-11-05T08:06:10.000+0000" }, { "id": "369071", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "Hi Mostafizur...\r\nBut as you can see on the posted image this is not the case... \r\nI'm a bit confused here. Is my description of the problem not good enough? \r\nI set the height to Ti.UI.FILL on the first row of imageviews and it works fine..\r\nI set the width to Ti.UI.FILL on the second row of imageviews and it does not upscalescale correct. \r\nPlease let me know if I need to explain mere... \r\n\r\nThanks", "updateAuthor": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2015-11-05T08:48:34.000+0000", "updated": "2015-11-05T08:48:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }