[BUG] Margin and Padding don't work in CollectionView #23211
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/iOS 🍎
potential-regression
This issue described a possible regression on a currently supported version., verification pending
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
On iOS Margin and Padding don't work in CollectionView. In the attached example, I have 3 collection views.
In the first, a grid with padding appears to maintain padding correctly.
In the second, the grid with the margin does not maintain the margin: I would expect there to be white space around the grid but the blue color is continuous.
In the third (with border), it seems that the padding is replaced by a margin.
I have seen that in the past some bugs relating to these problems have already been opened, apparently resolved, but apparently not correctly
Steps to Reproduce
Run the project
presso "popup problem!!!!" button
a page with 3 collections should appears
Link to public reproduction project repository
https://github.com/acaliaro/MauiCollectionViewPaddingProblems
Version with bug
8.0.60 SR6
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI, Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17.3 iphone 12
Did you find any workaround?
I think this could help #17885 (comment)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: