Browse Source
* Add a failing test for the Grid span distribution assert In Debug builds, measuring star rows with RowSpacing and a spanned child fails the sanity check in EnsureMinSizeInDefinitionRange on a rounding residual (#22677). * Allow a rounding residual in the Grid span distribution assert After distributing a spanned child's size into its definitions, EnsureMinSizeInDefinitionRange asserted that nothing was left with MathUtilities.IsZero, whose fixed threshold is about 2.2e-15. At layout sizes in the hundreds, the floating-point residual can be larger (about 2.8e-14 in the reported case), so Debug builds failed the assert. The sanity check now compares the distributed size with the requested size using MathUtilities.AreClose, whose tolerance scales with the values and is never stricter than IsZero. Release builds are unaffected. Fixes #22677pull/22816/head
committed by
GitHub
2 changed files with 32 additions and 4 deletions
Loading…
Reference in new issue