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

Use infinity for measure constraints when determining auto sizes #6217

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Apr 19, 2022

Description of Change

The Grid is not properly measuring Auto rows/columns to their full possible values; they were being artificially constrained to the remaining space in the Grid. They should be measured at infinity in their Auto direction.

These changes make that happen, and add tests to ensure it.

Issues Fixed

Fixes #2107

@hartez hartez enabled auto-merge (squash) April 19, 2022 05:39
@jsuarezruiz jsuarezruiz added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Apr 19, 2022
@hartez hartez merged commit f2a42f6 into main Apr 19, 2022
@hartez hartez deleted the fix-2107 branch April 19, 2022 09:56
@tmijieux
Copy link
Contributor

tmijieux commented Apr 19, 2022

Hi ! i was about to file an issue about an unexpected behavior in a grid nested inside a stacklayout, but this looks probably related so i will try to reproduce it with the latest from the main branch and let you know if that fixes it.

maui:
2

compared to same layout on Xamarin.Forms (this is the expected layout according to my knowledge of the layout APIs):
1

@tmijieux
Copy link
Contributor

@tmijieux

@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Unexpected layout with Grid
4 participants