CollectionView sets the wrong height for items containing long word-wrapped text inside a * column #17050
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
layout-grid
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
See description and repro steps
Steps to Reproduce
Inside a CollectionView, define the item DataTemplate using a Grid with several columns with Width=Auto and one column with Width=* containing a Button with long text and LineBreakMode set to WordWrap. You will see the incorrect rendering:
Using hot reload, add a character to the Button's text and save. You will see the correct rendering:
Link to public reproduction project repository
https://github.com/mfeingol/repros/tree/master/CollectionViewHeightBug
Version with bug
8.0.0-preview.7.8842
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13
Did you find any workaround?
Setting a min height works, but is very annoying.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: