Bug 45206 - ListView Scroll problem when add a item.
Summary: ListView Scroll problem when add a item.
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.4
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
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:


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


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:
Status:
CONFIRMED

Description Luigi Maestrelli 2016-10-07 19:26:25 UTC
Created attachment 17941 [details]
Sample

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 4.2.0.703
Xamarin.Android 7.0.1.3
Xamarin.iOS 10.0.1.10
Xamarin.Forms 2.3.2.127
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 2.3.3.180.

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...