Unconstrained * rows/columns in Grid may expand when they should not #14694
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
fixed-in-7.0.92
Look for this fix in 7.0.92!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-preview.5.8529
Look for this fix in 8.0.0-preview.5.8529!
layout-grid
t/bug
Something isn't working
Milestone
Given the following structure:
Because the Grid is unconstrained vertically, the
*
rows should act as if they wereAuto
rows. Which means that the first row should have the height of the content (the 35 from the first Label). However, in some situations the logic which determines whether the*
rows should expand to have matching size values will be triggered erroneously, and the rows will be expanded to consume the entire space with equal distribution. This happens when the cross-platform layout compares its measured size with the native platform's measurements and differences in architecture/rounding result in slightly different values.We need to account for the rounding differences to avoid expanding these values erroneously. Possibly by introducing a tolerance value. Also, we need to determine whether decompression of
*
values should ever happen when the Grid is unconstrained in that direction; if not, then we can also avoid this situation by checking the initial measurement constraints when deciding whether to decompress the*
's.The text was updated successfully, but these errors were encountered: