Repository navigation
test: Add Skia-only runtime test for Grid ActualSize constraint with large child margin - #23150
Conversation
…large child margin Agent-Logs-Url: https://github.com/unoplatform/uno/sessions/b05d497d-0d84-4e56-9bc7-6dda2827c362 Co-authored-by: MartinZikmund <[email protected]>
|
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
Adds a Skia-scoped runtime regression test to ensure a Grid inside a fixed-size parent reports ActualWidth/ActualHeight constrained to the parent, even when a stretching child uses an extremely large margin (the “PushRect” pattern seen in ContentDialog scenarios).
Changes:
- Added
When_Grid_Child_Has_Large_Bottom_Margin_Grid_ActualSize_Constrainedruntime test targeting Skia platforms. - The test reproduces a large-bottom-margin “PushRect” child and asserts the
Grid’sActualWidth/ActualHeightremain constrained to the parent’s 400×400 size.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23150/wasm-skia-net9/index.html |
|
/unobot prepare-release --commit-message-pattern "ci: Set version to '{0}'" |
A
Gridwith a child element using a very large margin (e.g.,Margin="0,0,0,9999") incorrectly reportedActualHeight/ActualWidthof 9999 instead of being constrained to the parent container's available size. This manifested in the "PushRect" layout pattern commonly used insideContentDialog.Changes
When_Grid_Child_Has_Large_Bottom_Margin_Grid_ActualSize_Constrainedadded toGiven_GridLayouting.csGrid(MaxHeight=9999) inside a fixed 400×400Border, containing a fully-stretching child withMargin="0,0,0,9999"Grid.ActualHeightandGrid.ActualWidthequal 400 (parent-constrained), not 9999[PlatformCondition(ConditionMode.Include, RuntimeTestPlatforms.Skia)], where the fix is confirmed presentPR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.