{ "id": "165126", "key": "TIMOB-24260", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-03-08T08:16:23.000+0000", "created": "2016-12-26T12:55:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "andorid", "scrollview" ], "versions": [], "issuelinks": [ { "id": "54529", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "136772", "key": "TIMOB-17954", "fields": { "summary": "Android: ScrollView's ScrollTo(x,y) incorrect behavior (Parity)", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "53853", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136772", "key": "TIMOB-17954", "fields": { "summary": "Android: ScrollView's ScrollTo(x,y) incorrect behavior (Parity)", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:36:10.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "ScrollView.scrollTo not behave like iOS, no animation, while ScrollToBottom animates well both iOS and Android.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n layout: 'vertical'\r\n});\r\nwin.add(scrollView);\r\n\r\n// scrollToBottom animates well both iOS and Android\r\nvar button1 = Ti.UI.createButton({\r\n title: 'scrollToBottom',\r\n top: 10\r\n});\r\nbutton1.addEventListener('click', function() {\r\n scrollView.scrollToBottom();\r\n});\r\nscrollView.add(button1);\r\n\r\n// scrollToBottom don't animate on Android\r\nvar button2 = Ti.UI.createButton({\r\n title: 'scrollTo 350, 350',\r\n top: 10\r\n});\r\nbutton2.addEventListener('click', function() {\r\n scrollView.scrollTo(0, 350);\r\n});\r\nscrollView.add(button2);\r\n\r\n\r\nfor (var i = 0; i < 20; i++) {\r\n scrollView.add(Ti.UI.createLabel({\r\n text: 'Text' + i,\r\n width: 120,\r\n top: 10\r\n }));\r\n}\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ScrollView.scrollTo not behave like iOS (Parity)", "creator": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "environment": null, "comment": { "comments": [ { "id": "409798", "author": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hazemkhaled] I do not see a problem. Scroll view animates scrolling to bottom of list in both iOS and Android. Tested using latest SDK version on iPhone 7 Plus - iOS 10 and Google Nexus 6P - API 24.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-08T06:27:33.000+0000", "updated": "2017-03-08T08:15:45.000+0000" }, { "id": "409801", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as dupe of TIMOB-17954.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-08T08:16:23.000+0000", "updated": "2017-03-08T08:16:23.000+0000" }, { "id": "415693", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the linked issues.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:36:10.000+0000", "updated": "2017-03-24T18:36:10.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }