{ "id": "105484", "key": "AC-2312", "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": "2013-04-01T22:07:25.000+0000", "created": "2012-11-25T21:05:09.000+0000", "labels": [ "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:19.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "*Problem description*\r\nscrollTo method doesn't accept an x/y parameter which is inside a variable.\r\n\r\n*Test case*\r\n{code}\r\nvar mainWindow = Ti.UI.createWindow();\r\n\r\nvar scrollview = Titanium.UI.createScrollView({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL\r\n});\r\nvar container = Titanium.UI.createView({\r\n\theight : 3000,\r\n\twidth : Ti.UI.FILL,\r\n\tbackgroundColor : '#FFF'\r\n});\r\nscrollview.add(container);\r\n\r\nvar scrollpoint = 1500;\r\nscrollview.scrollTo(0, scrollpoint); // this doesn't work\r\n//scrollview.scrollTo(0, 1500); // this does work\r\n\r\nmainWindow.add(scrollview);\r\nmainWindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: scrollview.scrollTo Method broken", "creator": { "name": "heburg", "key": "heburg", "displayName": "Heburg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "heburg", "key": "heburg", "displayName": "Heburg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.0.0.v20121121161553 (Nightly Build 21.11.2012)\r\n2.1.4 GA\r\n\r\nTitanium Studio, build: 2.1.2.201208301612", "comment": { "comments": [ { "id": "245044", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "It works as it should. scrollTo needs to be done after the scrollview has been added to the window and the window has opened.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T22:07:25.000+0000", "updated": "2013-04-01T22:07:25.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }