xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Inconsistent behavior with GridItemsLayout in CollectionView (height adjustment of childs) #14522

Open Sebastian1989101 opened 3 years ago

Sebastian1989101 commented 3 years ago

Description

The behavior on iOS and Android is different how GridItemsLayout adjust the height of the childs. Please have a look at this: https://stackoverflow.com/questions/68848377/xamarin-forms-collectionview-griditemslayout-same-height-elements

Steps to Reproduce

  1. Use a CollectionView with a multi column GridItemsLayout

Expected Behavior

The childs are filled to match the height of others on iOS (just as it is on Android).

Actual Behavior

The childs are centered on iOS and stretched on Android.

Basic Information

Screenshots

This is how it looks on iOS: FbWV6

And this is how it looks on Android (and how I would expect it): WWQw2

Workaround

Sadly not found yet (based on SO, I'm not the only one with this problem).

yunusefendi52 commented 3 years ago

I can reproduce this issue inconsistentgridviewlayoutheight.zip