{ "id": "90742", "key": "TIMOB-8859", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13401", "description": "Sprint 2012-09 Core", "name": "Sprint 2012-09 Core", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-10T05:08:36.000+0000", "created": "2012-04-23T09:14:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_scrollview", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-10T13:46: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": "h4. Problem Description\r\nYou can't animate an element inside the scrollview when you are using SDK 2.0. You were able to do it in 1.8.2.\r\n\r\nh4. Actual results\r\nNo animation in the element inside the scrollview.\r\n\r\nh4. Expected results \r\nBeing able to animate the view \r\n\r\nh4. Test Case\r\n1. Create a new mobile app.\r\n2. Paste this code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\t\r\n\tvar scrollView = Ti.UI.createScrollView({\r\n\t\tcontentHeight: 'auto',\r\n\t\tcontentWidth: 'auto',\r\n\t\tlayout:'vertical', //Change from default value from absolute to a relative distance between the sibling views\r\n\t\tscrollType:\"vertical\",\r\n\t\ttop: 0,\r\n\t\tshowVerticalScrollIndicator: true,\r\n\t\tshowHorizontalScrollIndicator: false\r\n\t});\t\r\n\t\r\n\tvar mapView = Ti.Map.createView({\r\n\t mapType: Ti.Map.STANDARD_TYPE,\r\n\t\theight: 150,\r\n\t\ttop:0,\r\n\t animate:true,\r\n\t regionFit:true,\r\n\t\tuserLocation:true,\r\n\t annotations:[]\r\n\t});\r\n\t\r\n\tvar resizeBtn = Ti.UI.createButton({\r\n\t\ttitle:\"resize map\",\r\n\t\twidth:100,\r\n\t\theight:44,\r\n\t\tright:5,\r\n\t\tbottom:5\r\n\t});\r\n\tvar mapToggle = false;\r\n\tresizeBtn.addEventListener(\"click\", function(e){\r\n\t\tmapToggle = !mapToggle;\r\n\t\tif(mapToggle){\r\n\t\t\tmapView.animate({height:250, duration:300});\r\n\t\t} else {\r\n\t\t\tmapView.animate({height:150, duration:300});\r\n\t\t}\r\n\t});\r\n\tmapView.add(resizeBtn);\r\n\tscrollView.add(mapView);\r\n\t\r\n\t//other content\r\n\tvar testView = Ti.UI.createView({top:0, height:200, width:300, backgroundColor:\"red\"});\r\n\t\r\n\tvar resize2Btn = Ti.UI.createButton({\r\n\t\ttitle:\"resize view\",\r\n\t\twidth:120,\r\n\t\theight:44,\r\n\t\tright:5,\r\n\t\tbottom:5\r\n\t});\r\n\tvar toggle = false;\r\n\tresize2Btn.addEventListener(\"click\", function(e){\r\n\t\ttoggle = !toggle;\r\n\t\tif(toggle){\r\n\t\t\ttestView.animate({height:300, duration:300});\r\n\t\t} else {\r\n\t\t\ttestView.animate({height:200, duration:300});\r\n\t\t}\r\n\t});\r\n\ttestView.add(resize2Btn);\r\n\tscrollView.add(testView);\r\n\t\r\n\t//other content\r\n\tscrollView.add(Ti.UI.createView({top:0, height:200, width:300, backgroundColor:\"blue\"}));\r\n\t\r\n\twin.add(scrollView);\r\n\t\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Scrollview elements doesn't allow animation in 2.0", "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: 2.0.1GA2\r\nPlatform & version: iOS 5.1 \r\nDevice Details: iOS simulator \r\nHost Operating System: OS X 10.7.3\r\nTitanium Studio version: 2.0", "comment": { "comments": [ { "id": "192823", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR pending https://github.com/appcelerator/titanium_mobile/pull/2079", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T15:26:37.000+0000", "updated": "2012-04-26T15:26:37.000+0000" }, { "id": "199244", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK 2.1.0.v20120619142258 hash r5982b78e\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T16:20:42.000+0000", "updated": "2012-06-19T16:20:42.000+0000" }, { "id": "202324", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T05:08:02.000+0000", "updated": "2012-07-10T05:08:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }