仓库指标
- 星标
- (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
- Click On Problematic Page button
- Only 25 elements from total of 50 can be scrolled too
- Clicking Reload data button fixes this
Expected Behavior
All elements must be shown
Actual Behavior
50% of elements are shown
Basic Information
- x:Name="lvTestItems"
- SelectedItem="{Binding SelectedTestModel, Mode=TwoWay}" is set on the listview
- 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