{ "id": "107249", "key": "AC-2221", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-22T18:24:31.000+0000", "created": "2013-01-02T14:30:43.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:13.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": "open Kitchen Sink-> Base UI-> Scroll Views->Basic-> and scroll down to button \"Scroll to Top\" click it\r\n\r\nthere is misprint in Ti/UI/ScroolView.js in scrollTo:\r\nscrollTo: function(x, y) {\r\n self._setTranslation(x !== null ? -x : this._currentTranslationX, y !== null ? -y : this._currentTranslationX);\r\n},\r\n\r\nself is undefined at this point, should be this here.\r\n", "attachment": [], "flagged": false, "summary": "Crash in Kitchen Sink-> Base UI->Views-> Scroll Views->Basic->Scroll to Top", "creator": { "name": "aodukha", "key": "aodukha", "displayName": "Anatoliy Odukha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aodukha", "key": "aodukha", "displayName": "Anatoliy Odukha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mobile Web, any browser", "comment": { "comments": [ { "id": "286435", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe tested this issue with the test code below. I can’t reproduce this issue in mobile web. Please check following code in latest version. If you use a different test case, please post it here.\r\n\r\nh5. Test Environment\r\n\r\nTitanium SDK: 3.2.0.\r\nTitanium CLI: 3.2.0,\r\nGoogle chrome, Firefox\r\nWin 7, Mac OS X 10.8.5\r\n\r\nh5. Test Code\r\n\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : 'scrollView Test'\r\n});\r\n\r\nvar scrollView = Titanium.UI.createScrollView({\r\n\tcontentWidth : 'auto',\r\n\tcontentHeight : 'auto',\r\n\ttop : 0,\r\n\tshowVerticalScrollIndicator : true,\r\n\tshowHorizontalScrollIndicator : true\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor : '#336699',\r\n\tborderRadius : 10,\r\n\twidth : 300,\r\n\theight : 2000,\r\n\ttop : 10\r\n});\r\n\r\nscrollView.add(view);\r\n\r\nvar button = Titanium.UI.createButton({\r\n\ttitle : 'Scroll to Top',\r\n\theight : 40,\r\n\twidth : 200,\r\n\tbottom : 10\r\n});\r\nview.add(button);\r\nbutton.addEventListener('click', function() {\r\n\tscrollView.scrollTo(0, 0);\r\n});\r\n\r\nvar button2 = Titanium.UI.createButton({\r\n\ttitle : 'Add to Scroll View',\r\n\theight : 40,\r\n\twidth : 200,\r\n\ttop : 20\r\n});\r\nscrollView.add(button2);\r\nbutton2.addEventListener('click', function() {\r\n\tvar view = Ti.UI.createView({\r\n\t\tbackgroundColor : 'red',\r\n\t\tborderRadius : 10,\r\n\t\twidth : 300,\r\n\t\theight : 300,\r\n\t\ttop : 2020\r\n\t});\r\n\tscrollView.add(view);\r\n\r\n});\r\n\r\nwin.add(scrollView);\r\n\r\nwin.open();\r\n{code}\r\n\r\nThanks ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-02T04:34:31.000+0000", "updated": "2014-01-15T19:05:26.000+0000" }, { "id": "288316", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing since the issue is not reproducible with 3.2 TISDK.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-15T19:06:25.000+0000", "updated": "2014-01-15T19:06:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }