Bug 45206 - ListView Scroll problem when add a item.
Summary: ListView Scroll problem when add a item.
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.4
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-10-07 19:26 UTC by Luigi Maestrelli
Modified: 2017-06-16 15:31 UTC (History)
7 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Sample (189.27 KB, application/x-rar)
2016-10-07 19:26 UTC, Luigi Maestrelli
update repro project (168.22 KB, application/zip)
2017-01-14 00:01 UTC, Jimmy [MSFT]

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 45206 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 Luigi Maestrelli 2016-10-07 19:26:25 UTC
Created attachment 17941 [details]

Just on iOS, on Android works fine.

On a grouped ListView, when add a new item to the group, the ListView scrolls to the top.

To reproduce: run the sample and try to add some items. This will call a function to scroll the list to the last item. Before scrolling, the list will go to the top and then will go to the last item.

I'm using Xamarin
Comment 1 Chris King 2016-10-21 16:16:24 UTC
Fixed on master.
Comment 2 Jimmy [MSFT] 2017-01-14 00:01:40 UTC
Created attachment 19339 [details]
update repro project
Comment 3 Jimmy [MSFT] 2017-01-14 00:02:22 UTC
I am still able to reproduce the issue described when using Forms

This looks related to bug #28277 which describes a similar behavior but has been fixed. However the difference between this case and bug #28277 is that this project uses a grouped collection so the issue seems to still exist when using istView.IsGroupingEnabled = true and ScrollTo (item, group, position, animated)

I tested with a non-grouped ListView and did not experience the issue. However when using a grouped collection and ListView.IsGroupingEnabled = true then the ListView would jump to the top then scroll to the bottom. I've attached a newer repro project to demonstrate this.
Comment 4 Guilherme Waltricke 2017-03-09 14:04:41 UTC
The same problem here, Xamarin this will not be fixed, 4 months? that's been hard to work with XF with the quantity of bugs that appear...