{ "id": "168971", "key": "TIMOB-24964", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-07T12:18:36.000+0000", "created": "2017-07-16T08:29:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "55427", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "168962", "key": "TIMOB-24963", "fields": { "summary": "Android: Add scrollToTop() to ScrollView", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-16T01:59: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Currently ScrollView has a {{scrollToBottom()}} method but no {{scrollToTop()}}. While this can be achieved with {{scrollTo(0,0)}} the new {{scrollToTop()}} uses FOCUS_UP to scroll to the top position in order to solve nested problems (see: https://stackoverflow.com/a/44046801/5193915)\r\n\r\nExample:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: '#fff'});\r\nvar view1 = Ti.UI.createView({width:20,height:20,backgroundColor:\"#f00\",top:0});\r\nvar view2 = Ti.UI.createView({width:20,height:20,backgroundColor:\"#f0f\",top:800});\r\nvar scrollView = Ti.UI.createScrollView({height:Ti.UI.FILL,width:Ti.UI.FILL});\r\nvar btn1 = Ti.UI.createButton({title:\"scrollUp\",top: 10,left:0});\r\nvar btn2 = Ti.UI.createButton({title:\"scrollDown\",bottom:10,left:0});\r\n\r\nbtn1.addEventListener(\"click\",function(e){scrollView.scrollToTop()});\r\nbtn2.addEventListener(\"click\",function(e){scrollView.scrollToBottom()});\r\n\r\nwin.add(scrollView);\r\nwin.add(btn1);\r\nwin.add(btn2);\r\nscrollView.add(view1);\r\nscrollView.add(view2);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: Add scrollToTop() to ScrollView", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428935", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1139", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-11T09:21:16.000+0000", "updated": "2017-10-11T09:21:16.000+0000" }, { "id": "430776", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changes are seen in 7.0.0.v20171115153702.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-16T01:58:59.000+0000", "updated": "2017-11-16T01:58:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }