When using a horizontal orientated collection view with an item spacing then some items are hidden.
Remove ItemSpacing, rerun and 6 items are shown
<CollectionView ItemsSource="{Binding AList}">
<CollectionView.ItemsLayout>
<ListItemsLayout ItemSpacing="15" Orientation="Horizontal" />
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate>
<Label Text="O" TextColor="Blue" />
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
6 items always shown
only 3 shown (changing the items spacing effects the number of items)
will provide if needed
will provide if needed
@paul-charlton It'd be easier for the team if you could attach a repro.
Reproduction Link
will provide if needed
most definitely needed
/cc @hartez @rmarinho
there's a branch here that shows the problem. The top collection view only shows 3 items, the second one (which is working) shows 6.
the same issue seems to occur if you use a gridlayout with spacing as well:
<GridItemsLayout HorizontalItemSpacing="15" Orientation="Horizontal" Span="1" />
possibly related
https://github.com/xamarin/Xamarin.Forms/issues/7309
Facing this issue here in my horizontal list with item spacing. If I remove the spacing that works nicely.
I'm facing this issue as well, removing the ItemSpacing fixes it
Any updates on this one?
This is still an issue. Can this get some love please?
Most helpful comment
Facing this issue here in my horizontal list with item spacing. If I remove the spacing that works nicely.