{ "id": "85093", "key": "TIMOB-7281", "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": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-09T23:32:12.000+0000", "created": "2012-01-18T14:36:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "expected", "module_scrollview", "qe-testadded", "regression" ], "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": "14614", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "84460", "key": "TIMOB-6977", "fields": { "summary": "iOS:ScrollableView Zoom in ScrollableView is not working in 1.8", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-09T23:32:12.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": "h4. PROBLEM\r\nZoom used to work inside a ScrollableView, with 1.7.5. The same code doesn't work (doesn't zoom) in 1.8. \r\n\r\nh4. TESTCASE \r\nTest this code in 1.7.5, do a zoom. Works fine. Do the same with 1.8, won't work. \r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'black'\r\n});\r\n var photosView = Ti.UI.createScrollableView({\r\n backgroundColor:'black',\r\n width : 320,\r\n height : 450,\r\n showPagingControl:true,\r\n pagingControlHeight:20,\r\n maxZoomScale : 2.0,\r\n});\r\nvar imgArray = [];\r\nvar img1 = Ti.UI.createImageView({\r\n image:'http://media.koreus.com/200606/1image-illusion-optique14-mini.jpg'\r\n});\r\nimgArray.push(img1);\r\nphotosView.views = imgArray;\r\nwin.add(photosView);\r\nwin.open();\r\n{code}\r\n\r\nh4. Community Discusion \r\nhttp://developer.appcelerator.com/question/130153/image-zoom-not-working-after-update-to-sdk-18", "attachment": [], "flagged": false, "summary": "APIDoc: Document coding pattern for providing pinch/zoom while in a ScrollableView", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)\r\nJavascript Engine: iOS\r\nPlatform & version: iOS 5.0\r\nDevice Details: iOS simulator \r\nHost Operating System: OSX 10.6.8 \r\nTitanium Studio version: 1.0.8.201112282257", "comment": { "comments": [ { "id": "180049", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "By the way, the new code is:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'black'\r\n});\r\n var photosView = Ti.UI.createScrollableView({\r\n backgroundColor:'black',\r\n width : 320,\r\n height : 450,\r\n showPagingControl:true,\r\n pagingControlHeight:20,\r\n});\r\nvar imgArray = [];\r\nvar img1 = Ti.UI.createImageView({\r\n image:'http://media.koreus.com/200606/1image-illusion-optique14-mini.jpg'\r\n});\r\nvar imgWrapper = Ti.UI.createScrollView({\r\n\tmaxZoomScale:2.0,\r\n});\r\nimgWrapper.add(img1);\r\n\r\nimgArray.push(imgWrapper);\r\nphotosView.views = imgArray;\r\nwin.add(photosView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-20T12:01:50.000+0000", "updated": "2012-01-20T12:01:50.000+0000" }, { "id": "180080", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "API update pull request #1225 sent. However, we should stress that this isn't a workaround. A workaround is when there's something broken. This is the new expected behavior, with a new code pattern to follow.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-20T13:57:26.000+0000", "updated": "2012-01-20T13:57:26.000+0000" }, { "id": "180214", "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: 1.9.0.v20120121223134\r\nTitanium Studio, build: 1.0.8.201201210622\r\nXcode: 4.2\r\nOS: Mac OS X Lion (10.7.2)\r\nDevice: iPhone 4S Verizon (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T12:04:07.000+0000", "updated": "2012-01-23T12:04:07.000+0000" }, { "id": "181266", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "updated labels", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T14:52:09.000+0000", "updated": "2012-01-31T14:52:09.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }