{ "id": "88631", "key": "TIMOB-8247", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-27T09:35:04.000+0000", "created": "2012-03-23T13:38:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-and031912", "qe-nfc" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-27T09:35:04.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": "Steps to reproduce:\r\n1. Run code on Android:\r\n{code}\r\n// Create an image view on a parent that is width and height constrained \r\n// See that the image view sizes itself accordingly \r\n\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = 'white';\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'Image View should auto size to image, but stay within red',\r\n\ttop: 20,\r\n\tleft: 10,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\tcolor: 'black'\r\n});\r\n\r\nvar view1 = Ti.UI.createView({\r\n\theight: 30,\r\n\twidth: 60,\r\n\ttop: 80,\r\n\tbackgroundColor: 'red'\r\n});\r\n\r\nvar imageView1 = Ti.UI.createImageView({\r\n\timage: 'flower.jpg',\r\n\tbackgroundColor: 'blue'\r\n});\r\n\r\nvar view2 = Ti.UI.createView({\r\n\theight: 50,\r\n\twidth: 120,\r\n\ttop: 140,\r\n\tbackgroundColor: 'red'\r\n});\r\n\r\nvar imageView2 = Ti.UI.createImageView({\r\n\timage: 'flower.jpg',\r\n\tbackgroundColor: 'blue'\r\n});\r\n\r\nvar view3 = Ti.UI.createView({\r\n\theight: 70,\r\n\twidth: 180,\r\n\ttop: 220,\r\n\tbackgroundColor: 'red'\r\n});\r\n\r\nvar imageView3 = Ti.UI.createImageView({\r\n\timage: 'flower.jpg',\r\n\tbackgroundColor: 'blue'\r\n});\r\n\r\n\r\nview1.add(imageView1);\r\nview2.add(imageView2);\r\nview3.add(imageView3);\r\nwin.add(view1);\r\nwin.add(view2);\r\nwin.add(view3);\r\nwin.add(label);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nActual: ImageView will fill parent view. See attachment.\r\nExpected: ImageView should not fill parent view (respect image ratio).\r\n\r\nNote:\r\n* Above code works as expected on Android.", "attachment": [ { "id": "26531", "filename": "device-2012-03-23-143600.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-23T13:40:24.000+0000", "size": 61208, "mimeType": "image/png" }, { "id": "26529", "filename": "flower.jpg", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-23T13:38:50.000+0000", "size": 17766, "mimeType": "image/jpeg" }, { "id": "26541", "filename": "on_ios.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-23T15:40:04.000+0000", "size": 203978, "mimeType": "image/png" }, { "id": "26601", "filename": "Screen Shot 2012-03-26 at 12.52.17 PM.png", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T11:53:16.000+0000", "size": 100786, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ImageView - ImageView does not auto size image view correctly", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 2.0.0.v20120322190311\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203221554\r\nDevice: Galaxy Nexus (4.0.2)", "comment": { "comments": [ { "id": "188366", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ignore attachment with button.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-23T13:40:49.000+0000", "updated": "2012-03-23T13:40:49.000+0000" }, { "id": "188613", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also occurs on:\r\nTitanium Studio, build: 2.0.0.201203262445\r\nSDK: 2.0.0.v20120325213306\r\nDevice: Android Nexus S (2.3.6)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T11:01:36.000+0000", "updated": "2012-03-26T11:01:36.000+0000" }, { "id": "188614", "author": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "body": "this also fails on Android(2.2.2)- nexus one, when tests on\r\nTitanium mobilesdk-2.0.0.v20120325213306\r\nTitanium Studio build: 2.0.0.201203262445", "updateAuthor": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T11:02:35.000+0000", "updated": "2012-03-26T11:02:35.000+0000" }, { "id": "188618", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also occurs on Kindle Fire and Nook Color\r\nTitanium SDK: 2.0.0.v20120325213306\r\nTitanium Studio, build: 2.0.0.201203262445", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T11:09:58.000+0000", "updated": "2012-03-26T11:09:58.000+0000" }, { "id": "188628", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "iOS Behavior in 1.8.2 attached; note image scaling rather than cropping behavior.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T11:53:16.000+0000", "updated": "2012-03-26T11:53:16.000+0000" }, { "id": "188685", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1845", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T14:49:32.000+0000", "updated": "2012-03-26T14:49:32.000+0000" }, { "id": "188826", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120326211803\r\nTitanium Studio, build: 2.0.0.201203262445\r\nxcode: 4.3\r\nDevice: iphone 4s Verizon (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-27T09:34:56.000+0000", "updated": "2012-03-27T09:34:56.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }