xamarin/Xamarin.Forms

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

开放

#6,255 创建于 2019年5月22日

 (6 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
3.6.0a/listviewe/3 :clock3:help wantedi/regressionp/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南