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

Tests and fixes to verify that spanned views are including spacing in measurements #15119

Merged
merged 5 commits into from May 19, 2023

Conversation

hartez
Copy link
Contributor

@hartez hartez commented May 16, 2023

Description of Change

Views which span Grid columns/rows aren't taking the spacing of the rows into account during measurement.

They're accounting for the spacing during layout, but since the measurement step isn't always utilizing the spacing, some controls are getting shorted on their initial measurements for sizing. This change fixes that, and adds tests to catch this situation in the future.

Issues Fixed

Ensures that Grid child views are getting their full measurement constraints when they span multiple columns/rows.

@github-actions
Copy link
Contributor

Thank you for your pull request. We are auto-formatting your source code to follow our code guidelines.

@Eilon Eilon added the area/layout StackLayout, GridLayout, ScrollView, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 16, 2023
@rmarinho rmarinho merged commit e85d0f0 into main May 19, 2023
30 checks passed
@rmarinho rmarinho deleted the fix-grid-measure-spacing branch May 19, 2023 11:06
rmarinho pushed a commit that referenced this pull request May 30, 2023
… measurements (#15119)

* Tests and fixes to verify that spanned views are including spacing in their measurements

* Update src/Core/src/Layouts/GridLayoutManager.cs

* Auto-format source code

* Update GridLayoutManagerTests.cs

---------

Co-authored-by: GitHub Actions Autoformatter <autoformat@example.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/layout StackLayout, GridLayout, ScrollView, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants