Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid row not sizing correctly with * when the content is a collectionview on iOS #15092

Closed
WebGoose opened this issue May 15, 2023 · 3 comments
Closed
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 t/bug Something isn't working

Comments

@WebGoose
Copy link

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:
image

If I replace the collectionview with a stacklayout and some labels, the spacing on iOS is correct as below.
image

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

@WebGoose WebGoose added the t/bug Something isn't working label May 15, 2023
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 15, 2023
@drasticactions
Copy link
Contributor

I think that's being fixed with #14951

@drasticactions
Copy link
Contributor

drasticactions commented May 16, 2023

Duplicate of #14966

@drasticactions drasticactions marked this as a duplicate of #14951 May 16, 2023
@drasticactions drasticactions marked this as a duplicate of #14966 May 16, 2023
@WebGoose
Copy link
Author

WebGoose commented May 16, 2023

Is there a way for us to force our build pipeline in Azure to use the previous MAUI version until the PR for this is released? Our testers are now unable to test large portions of our actual app on iOS.

Currently installing MAUI using
image

@ghost ghost locked as resolved and limited conversation to collaborators Jun 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants