xamarin/Xamarin.Forms

[Bug] ListView iOS not able to scroll down to bottom

Open

#6,255 opened on May 22, 2019

 (6 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
3.6.0a/listviewe/3 :clock3:help wantedi/regressionp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

Listview on iOS - Only able to scroll down to 50% of the total elements in this certain case. (Maybe there are other cases as well)

Steps to Reproduce

  1. Click On Problematic Page button
  2. Only 25 elements from total of 50 can be scrolled too
  3. Clicking Reload data button fixes this

Expected Behavior

All elements must be shown

Actual Behavior

50% of elements are shown

Basic Information

  1. x:Name="lvTestItems"
  2. SelectedItem="{Binding SelectedTestModel, Mode=TwoWay}" is set on the listview
  3. Code Behind: this.lvTestItems.SelectedItem = viewModel.SelectedTestModel;

Setting the selected item one more time in the code behind causes only half of the elements of the listview to be rendered. When x:Name attribute is removed, everything works fine. But anyway this info might be useful to you, because this was not the case in previous versions.

When updated to version 3.6 this behavior appeared. Just tested it with Xamarin.Forms v4.0.0 - still not ok.

Probably this bug is related to #6075

  • Version with issue: 3.6.0.344457 and 4.0.0
  • Last known good version: 3.3.0.967583

Reproduction Link

iOSListviewNotScrollingCorrectly.zip

updated repo without DataType: iOSScrollingProblemUpdated.zip

Contributor guide