Xamarin.forms: [Bug] ListView iOS not able to scroll down to bottom

Created on 22 May 2019  路  5Comments  路  Source: xamarin/Xamarin.Forms

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

3.6.0 listview 3 help wanted regression iOS 馃崕 bug up-for-grabs

Most helpful comment

Temporary solution we found: introduce an empty list view footer.
<ListView.Footer> <StackLayout BackgroundColor="Transparent" HeightRequest="0"/> </ListView.Footer>

All 5 comments

@kingces95
Removing x:DataType="{x:Type models:TestModel}" from line 18 does not solve the problem.
I am using visual studio 2017 15.9.12 - it compiled it just fine, that's why i submitted it with it, otherwise i would have removed it

updated repo without DataType:
iOSScrollingProblemUpdated.zip

Temporary solution we found: introduce an empty list view footer.
<ListView.Footer> <StackLayout BackgroundColor="Transparent" HeightRequest="0"/> </ListView.Footer>

Having same issue. @alekseevabah temporary solution worked.

Thanks for posting your workaround @alekseevabah! How has this issue not been addressed since June?

Was this page helpful?
0 / 5 - 0 ratings