xamarin/Xamarin.Forms

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

Aperta

#7799 aperta il 3 ott 2019

 (1 commento) (1 reazione) (0 assegnatari)C# (1926 fork)batch import
4.3.0a/collectionviewe/4 :clock4:help wantedi/regressionp/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor