If we specify vertical item space for the collectionview, it will add additional white space at the end of items rendered by the collectionview. And the amount of white space is proportional to the no of items in the collection views itemsource.
Steps to Reproduce
Add a collection view to the page
Define VerticalItemSpacing for the layout, say GridItemsLayout
Set ItemsSource
More the no of the item in the collection view, more the white space at the end.
Expected Behavior
VerticalItemSpacing should only add spacing among the items present in the collection
Actual Behavior
Additional white space is added after rendering the ItemsSource items, as the no of items increase the amount of white space at the end also increases.
Basic Information
Version with issue:
Xamarin Forms 4.5.0.657 & 4.3.0.991250 (tested on these two version)
Last known good version:
IDE: Visual Studio for mac
Platform Target Frameworks:
iOS: 13.4.1(simulator), 12.4.4(iPhone 6 Plus device)
Android: Not observed in android
Affected Devices:
iPhone 11 (simulator), iPhone 6 Plus
Screenshots
Here there are around 14 items in the list, after scrolling to the end of the list this white space is present.
Workaround
One workaround was to not use the VerticalItemSpacing and instead include the vertical spacing within the data template. But the downfall of this approach is that if we wont be able to have a common template being used in different places
Description
If we specify vertical item space for the collectionview, it will add additional white space at the end of items rendered by the collectionview. And the amount of white space is proportional to the no of items in the collection views itemsource.
Steps to Reproduce
More the no of the item in the collection view, more the white space at the end.
Expected Behavior
VerticalItemSpacing should only add spacing among the items present in the collection
Actual Behavior
Additional white space is added after rendering the ItemsSource items, as the no of items increase the amount of white space at the end also increases.
Basic Information
Screenshots
Here there are around 14 items in the list, after scrolling to the end of the list this white space is present.
Workaround
One workaround was to not use the VerticalItemSpacing and instead include the vertical spacing within the data template. But the downfall of this approach is that if we wont be able to have a common template being used in different places