You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CollectionView.ItemsLayout LinearItemsLayout ItemSpacing behaves significantly differently on Windows compared to Android (possibly Mac/iOS too) #38959
Just create a collection view with items inside (the control doesn't matter) and play around with the ItemSpacing property and compare the visual result between Windows and Android (and possibly iOS too).
changed the title [-]CollectionView.ItemsLayout LinearItemsLayout ItemSpacing behaves significantly differently on Windows compared to Android (possibly Mac/iOS too))[/-][+]CollectionView.ItemsLayout LinearItemsLayout ItemSpacing behaves significantly differently on Windows compared to Android (possibly Mac/iOS too)[/+]on Sep 28, 2026
This issue has been validated in Visual Studio Insiders [12202.211] with .NET MAUI versions 10.0.0 and 10.0.110. It can be reproduced on Windows platform.
Insufficient evidence: The failing release contains a concrete Windows/Android spacing difference, but no introducing commit or PR can be supported. A previously working MAUI version is unknown; this could be a longstanding platform inconsistency rather than a recent regression.
📊 Version boundary
The original report describes Windows 10, a vertical CollectionView with ItemSpacing=30 and 40-unit-high Borders, and visibly larger gaps than Android. Expected: comparable logical spacing across platforms. iOS/MacCatalyst are conjectured, not demonstrated.
The frozen context has no good-to-bad comparison because “Unknown/Other” cannot resolve a good tag. Comments are not truncated. Path-history results were unavailable in this run, so shipped introduction/backport ancestry remains unverified.
🧬 Candidate changes
No introducing change is attributable. At the failing SHA, Windows GetVerticalItemContainerStyle assigns the full ItemSpacing to both top and bottom container margins. In contrast, Android SpacingItemDecoration assigns half-spacing per side, converts to pixels, and removes outer-edge spacing.
This supports a doubled inter-container spacing contribution on Windows, but does not establish the reported approximately threefold visual ratio or when the difference began. Static inspection is not a reproduction, paired runtime comparison, or bisect.
🧭 Follow-up — actions and refresh
Next action: Identify one exact MAUI version where this same sample has correct Windows spacing. Compare it with 10.0.0 under equivalent OS, display scaling, SDK/workload and Windows App SDK conditions, recording logical item bounds. Then refresh context and trace that bounded interval; confirm any candidate by comparing its parent and candidate under those same conditions.
Maintainers: comment /issue trace-regression to refresh this report.
Thank you for the report and the investigation details. We are closing this as completed: the default Windows CollectionView handler now applies the requested item spacing once rather than doubling the paired spacing contributions.
Supporting evidence: #38960 (merged into inflight/current).
This records the merged source change; it does not imply that the fix is present in every released .NET MAUI package.
If you can still reproduce the reported behavior in a build that includes the linked change, please comment here with the exact version and reproduction details so we can reopen and investigate. The existing reproduction and discussion remain available; a new issue is not required.
Activity
[-]CollectionView.ItemsLayout LinearItemsLayout ItemSpacing behaves significantly differently on Windows compared to Android (possibly Mac/iOS too))[/-][+]CollectionView.ItemsLayout LinearItemsLayout ItemSpacing behaves significantly differently on Windows compared to Android (possibly Mac/iOS too)[/+][Windows] Fix doubled CollectionView item spacing (#38960)
NafeelaNazhir commentedon Sep 29, 2026
This issue has been validated in Visual Studio Insiders [12202.211] with .NET MAUI versions 10.0.0 and 10.0.110. It can be reproduced on Windows platform.
kubaflo commentedon Oct 3, 2026
github-actions commentedon Oct 3, 2026
Regression Trace
🔎 Regression Analysis — click to expand
Insufficient evidence: The failing release contains a concrete Windows/Android spacing difference, but no introducing commit or PR can be supported. A previously working MAUI version is unknown; this could be a longstanding platform inconsistency rather than a recent regression.
📊 Version boundary
The original report describes Windows 10, a vertical CollectionView with
ItemSpacing=30and 40-unit-high Borders, and visibly larger gaps than Android. Expected: comparable logical spacing across platforms. iOS/MacCatalyst are conjectured, not demonstrated.Observed failing MAUI version: 10.0.110, resolved to 6c379bf, not an established first bad release. A contributor subsequently reports reproduction on both 10.0.0 and 10.0.110. That adds an earlier failing observation, not a passing boundary.
The frozen context has no good-to-bad comparison because “Unknown/Other” cannot resolve a good tag. Comments are not truncated. Path-history results were unavailable in this run, so shipped introduction/backport ancestry remains unverified.
🧬 Candidate changes
No introducing change is attributable. At the failing SHA, Windows
GetVerticalItemContainerStyleassigns the fullItemSpacingto both top and bottom container margins. In contrast, AndroidSpacingItemDecorationassigns half-spacing per side, converts to pixels, and removes outer-edge spacing.This supports a doubled inter-container spacing contribution on Windows, but does not establish the reported approximately threefold visual ratio or when the difference began. Static inspection is not a reproduction, paired runtime comparison, or bisect.
🧭 Follow-up — actions and refresh
Next action: Identify one exact MAUI version where this same sample has correct Windows spacing. Compare it with 10.0.0 under equivalent OS, display scaling, SDK/workload and Windows App SDK conditions, recording logical item bounds. Then refresh context and trace that bounded interval; confirm any candidate by comparing its parent and candidate under those same conditions.
[Windows] Fix doubled CollectionView item spacing (#38960)
[Windows] Fix doubled CollectionView item spacing (#38960)
kubaflo commentedon Oct 10, 2026
Thank you for the report and the investigation details. We are closing this as completed: the default Windows CollectionView handler now applies the requested item spacing once rather than doubling the paired spacing contributions.
Supporting evidence: #38960 (merged into
inflight/current).This records the merged source change; it does not imply that the fix is present in every released .NET MAUI package.
If you can still reproduce the reported behavior in a build that includes the linked change, please comment here with the exact version and reproduction details so we can reopen and investigate. The existing reproduction and discussion remain available; a new issue is not required.
[Windows] Fix doubled CollectionView item spacing (#38960)
[Windows] Fix doubled CollectionView item spacing (#38960)
[Windows] Fix doubled CollectionView item spacing (#38960)
[Windows] Fix doubled CollectionView item spacing (#38960)
[Windows] Fix doubled CollectionView item spacing (#38960)
[Windows] Fix doubled CollectionView item spacing (#38960)
[Windows] Fix doubled CollectionView item spacing (#38960)