xamarin/Xamarin.Forms

[Bug] CollectionView with itemtemplate selector and bindable layout behaves strangely on iOS

Offen

#7.799 geöffnet am 03.10.2019

 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)C# (1.926 Forks)batch import
4.3.0a/collectionviewe/4 :clock4:help wantedi/regressionp/iOS 🍎t/bug :bug:up-for-grabs

Repository-Metriken

Stars
 (5.644 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

I have a CollectionView where you can add either a simple int or a List of objects with ItemTemplate set to a selector. I have a bindable StackLayout with a selector in one of the templates on the CollectionView. On adding items the CollectionView behaves strangely, refreshes and places new items in the middle of the list. Only broken in iOS, android fine.

Steps to Reproduce

  1. Open repro.
  2. Click AddModel and Add SImple alternately until page full.
  3. Scroll to bottom.
  4. CollectionView refreshes on adding items.

Expected Behavior

CollectionView adds items to bottom of list.

Actual Behavior

CollectionView refreshes and adds items to middle temporarily, and starts overlapping items.

Basic Information

  • Version with issue :4.3.0.851321-pre3
  • Last known good version: In 4.2 just freezes once screen is full or all the items disappear.
  • IDE: Visual Studio 2019 16.3.2
  • Platform Target Frameworks:
    • iOS: 13.0
  • Affected Devices: iPhone 8 simulator

Screenshots

2019-10-03_03-47-05-PM

Reproduction Link

CollectionViewTemplateSelectors.zip

Contributor Guide