Grid row not sizing correctly with * when the content is a collectionview on iOS #15092
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
platform/iOS 🍎
t/bug
Something isn't working
Description
I have a grid with 2 rows (*, 50), with some buttons in the bottom row. As per the Docs, this layout should mean that the button is anchored to the bottom of the page and the * uses the rest of the available space for whatever is in that row. However, if the first row contains a collectionview, it is not constrained to the available space, but expands the page and actually overlaps / hides the bottom row entirely making the buttons unusable. This only happens on iOS and only started happening with Service Release 6, which contained a fix for grid sizing but seems to have now broken something else.
Any other control uses the available space correctly, but collectionview does not.
ANDROID:
screencapture-1684161642824.mp4
IOS:
If I replace the collectionview with a stacklayout and some labels, the spacing on iOS is correct as below.
This was working fine in the previous release.
I have attached a basic sample project to demonstrate
Steps to Reproduce
See attached example project.
Create a grid with 2 rows with the top row being a * and the bottom row being either fixed value of say 50 or auto.
Place a collectionview in the top row with enough items that it will scroll. Place anything else in the bottom row.
The collectionview is not constrained to the available space that the * should be using (screen height - bottom row) and overlaps / hides it.
Link to public reproduction project repository
https://gooseza.visualstudio.com/MauiBugs/_git/GridCollectionView
Version with bug
7.0 (current)
Last version that worked well
7.0 (current)
Affected platforms
iOS
Affected platform versions
iOS 16.4.1
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: