{ "id": "87677", "key": "TIMOB-7956", "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-03-14T14:39:10.000+0000", "created": "2012-03-09T22:00:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:07:42.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": "ImageView in ScrollView behaves differently in 1.8.2 and 2.0.x CI build. In 2.0.x CI builds the image is initially zoomed in. Zoom in and zoom out also have different behaviors.\r\nh4. Repro Steps\r\n1. Run the below code in both Ti SDK 1.8.2 and 2.0.x CI builds.\r\n2. You can see the image is zoomed in 1.8.2 when the app starts and zoom in and zoom out have different behaviors.\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n maxZoomScale: 2.0,\r\n minZoomScale: 0.3\r\n});\r\nvar imageView = Ti.UI.createImageView({\r\n backgroundColor: 'pink',\r\n image: 'http://images.wikia.com/analytical/images/7/7e/Mountain.jpg'\r\n});\r\n\r\nscrollView.add(imageView);\r\nwin1.add(scrollView);\r\n\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: ImageView in ScrollView behaves differently in 1.8.2 and CI", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS5\r\niPhone4\r\nTiSDK 2.0.x CI build, 1.8.2", "comment": { "comments": [ { "id": "186507", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is a behavior change due to composite layout definition. In 1.8.2 version undefined width and height of image view would default to FILL behavior as in width and height are constrained by parent size. In 2.0 undefined width and height of image view default to SIZE behavior as in SIZE is determined by image content. To see the same behavior in 2.0 as in 1.8.2 redefine imageView as \r\n\r\n{code}\r\nvar imageView = Ti.UI.createImageView({\r\n backgroundColor: 'pink',\r\n image: 'http://images.wikia.com/analytical/images/7/7e/Mountain.jpg',\r\n width:Ti.UI.FILL,\r\n height:Ti.UI.FILL\r\n});\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-14T14:39:10.000+0000", "updated": "2012-03-14T14:39:10.000+0000" }, { "id": "410919", "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-09T23:07:42.000+0000", "updated": "2017-03-09T23:07:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }