Bug 37757 - iOS Listview mess with scrollposition after navigation to another page on iOS
Summary: iOS Listview mess with scrollposition after navigation to another page on iOS
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-17 19:07 UTC by Caan Mee
Modified: 2018-03-09 21:17 UTC (History)
4 users (show)

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


Attachments
SampleProject (285.16 KB, application/x-zip-compressed)
2016-01-17 19:07 UTC, Caan Mee
Details
iOS 9.2 sample project pop a modal (285.27 KB, application/x-zip-compressed)
2016-01-21 10:22 UTC, Caan Mee
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 37757 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 Caan Mee 2016-01-17 19:07:39 UTC
Created attachment 14611 [details]
SampleProject

Using a ListView on iOS with HasUnevenRows=true and variable heights set for the cell is bugging when navigating to another page.

I attached a small sample project to reproduce:

1) Start the iOS app
2) Scroll to an arbitrary item (e.g. item labeled "5")
3) Click on the item (so the detail page opens)
4) Now just hit the "back" button
5) The listview now scrolled to a completly different item

I verified this behaviour on iPhone 4s Simulator running iOS 8.1.

Using Xamarin.Form 2.0 -pre1 and the latest Xamarin update.


I added a Debug.WriteLine to BindingContextChanged, when watching the console it seems that it's reloading? the listview, which also adds a performance penalty when navigating between pages with listviews.
Comment 1 Paul DiPietro [MSFT] 2016-01-20 17:19:43 UTC
Stops occurring on 8.3.
Comment 2 Caan Mee 2016-01-21 10:22:36 UTC
Created attachment 14655 [details]
iOS 9.2 sample project pop a modal

A very similar bug using modal pages also occurs on > iOS 8.3 (verified it on Simulator iPhone 4s, iOS 9.2).

I modified the sample project a little bit and attached a new version:

1) Start the iOS app
2) Scroll to an arbitrary item (e.g. item labeled "5")
3) Click on the item (so the detail page opens as a modal page)
4) Now just click the button labeled "Item"
5) The current modal is popped
5) The listview now scrolled to a completly different item
Comment 3 Paul Brenner 2018-03-09 21:17:00 UTC
I can no longer reproduce this issue with version 2.5.0.280555, can someone from QA please confirm this is fixed?