Bug 54335 - ScrollView.ScrollToAsync never returns and does not scroll up
Summary: ScrollView.ScrollToAsync never returns and does not scroll up
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.4
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Jason Smith [MSFT]
Depends on:
Reported: 2017-03-31 13:20 UTC by Alexander
Modified: 2018-08-23 13:09 UTC (History)
12 users (show)

Tags: ios, android, uwp, scrollto, scrollview, ac
Is this bug a regression?: No
Last known good build:

ScrollToAsync problems sample (299.76 KB, application/x-zip-compressed)
2017-03-31 13:20 UTC, Alexander

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 54335 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Alexander 2017-03-31 13:20:58 UTC
Created attachment 21105 [details]
ScrollToAsync problems sample

await ScrollView.ScrollToAsync(ScrollToPosition.*, animated: true) never returns -- if no scrolling actually needed (item already on target position).

Android, iOS, UWP:
await ScrollView.ScrollToAsync(targetElement, ScrollToPosition.MakeVisible) does not scroll up, only down -- if targetElement is not topmost. UWP: additionally never returns in this case, even if animated: false.

Please see the sample.
Comment 1 Jimmy [MSFT] 2017-03-31 15:20:01 UTC
Hi Alexander, thank you for reporting this! Let me see if I can confirm this issue with the project attached and I will update the report with my results.
Comment 2 Jimmy [MSFT] 2017-04-13 19:52:34 UTC
I ran the attached project with Forms and I am seeing the issues described. I am confirming this report so the team can investigate further.

I also tested with Forms 2.3.5-pre1 and the issue improved slightly on UWP. I am seeing the following behavior with 2.3.5-pre1:

## iOS
- Does not return from 'await ScrollToAsync()` if item is already in the correct position and animated = true
- ScrollToPosition.MakeVisible does not work if it requires the list to be scrolled up

## UWP
- ScrollToPosition.MakeVisible does not work if it requires the list to be scrolled up

## Android
- ScrollToPosition.MakeVisible does not work if it requires the list to be scrolled up

### Version Tests
2.3.5-pre1  BAD   BAD
Comment 3 Alberto 2017-07-06 16:22:15 UTC
Hi Jimmy, can please mark it as REGRESSION? On XF 2.3.3 it was working. 

Also, please increase the priority: ScrollView is a basic component used in almost all apps. 

Comment 4 Alberto 2017-07-07 09:06:38 UTC
Never mind, the bug I'm referring is not this one, but https://bugzilla.xamarin.com/show_bug.cgi?id=45215
Comment 5 Bob Baldwin 2017-08-22 17:15:00 UTC
We're also experiencing this issue with ScrollPosition.MakeVisible when it requires the list to be scrolled up.  This is occurring on Android, will try and test iOS soon.

What is the latest status on this issue, please?