[iOS/Mac] CollectionView does not respect ItemSource DataTemplate height/width constraints #17285
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
A CollectionView with some items will not respect the DataTemplate's dimensions depending on the
ItemsLayout
of the collection view on iOS/Mac.For example, if I have a CollectionView that flows horizontally, the CV will not respect my HeightRequest. If I have a CV that flows vertically, the CV won't respect my WidthRequest.
Steps to Reproduce
The sample code can be simplified, I was just investigating another issue and stumbled on this.
Link to public reproduction project repository
(see code above)
Version with bug
8.0.0-preview.7.8842
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
Limit the dimensions you want in the CollectionView element rather than within the datatemplate.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: