[regression/8.0.0-preview.4.8333] CollectionView has default spacing between items on Windows which I cannot remove #12495
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
fixed-in-7.0.96
Look for this fix in 7.0.96 SR8!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-preview.1.7762
Look for this fix in 8.0.0-preview.1.7762!
fixed-in-8.0.0-rc.2.9373
Look for this fix in 8.0.0-rc.2.9373!
i/regression
This issue described a confirmed regression on a currently supported version
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
The documentation says that a CollectionView has no default spacing between items. However, when adding a simple Label element, there is clear spacing between the items. I have tried multiple ways to remove this but cannot seem to find a way.
This happens on Windows. MacCatalyst seems OK.
Steps to Reproduce
In my example I have set the CollectionView background to Red and the Label's to Yellow to clearly show where the spacing occurs.
You can see in this example that the Labels have space between then, even though in the documentation it says:
Source - https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/collectionview/layout?view=net-maui-7.0
Example of application running
Link to public reproduction project repository
https://github.com/samuelradford/Reproduction.MAUICollectionViewSpacing
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11 (OS Build: 22000.1335)
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: