xamarin/Xamarin.Forms

[Bug] CollectionView invisible items hold space and are selectable

Open

#8,227 opened on Oct 25, 2019

 (4 comments) (1 reaction) (0 assignees)C# (1,926 forks)batch import
a/collectionviewe/4 :clock4:help wantedinactivep/Androidp/UWPp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

I am using CollectionView to create Accordion. The CollectionView needs to show Grouped items when user clicks on the header and again hides it with another click. But the issue is that the hidden items stills hold their space and are selectable. In the screenshot below the Group1 items are holding as much space as Group2 and the second item is selected in Group1 although it's items are Invisible.

Basic Information

  • Version with issue:Xamarin.Forms-4.3.0.908675
  • IDE:VSMac
  • Affected Devices:iOS and Android

Screenshots

CollectionView

Reproduction Link

ShellRepro.zip

Contributor guide