Skip to content

Grid: Fixes for minmax, fr proportions and distributing space across multiple tracks#349

Merged
alice-i-cecile merged 30 commits intoDioxusLabs:mainfrom
nicoburns:grid/span-2-tests
Feb 3, 2023
Merged

Grid: Fixes for minmax, fr proportions and distributing space across multiple tracks#349
alice-i-cecile merged 30 commits intoDioxusLabs:mainfrom
nicoburns:grid/span-2-tests

Conversation

@nicoburns
Copy link
Copy Markdown
Collaborator

Objective

A bunch of miscellaneous fixes:

  • Distribute space to flexible tracks in proportion to their flex fraction
  • Divide rather than multiply when finding fr using a track's base size
  • Size fr tracks correctly when every track's size is 0fr
  • Never apply fit-content limit when distributing a minimum contribution
  • Pass correct other_axis_tracks to item.known_dimensions() when re-computing rows

And a lot of new tests testing complex track sizing scenarios.

…zing functions

when the container size in that axis is undefined
…track sizing algorithm in order to resolve percentage sizes
@nicoburns nicoburns added bug Something isn't working testing Additional tests or improvements to the testing infrastructure labels Feb 3, 2023
@nicoburns nicoburns mentioned this pull request Feb 3, 2023
87 tasks
@alice-i-cecile
Copy link
Copy Markdown
Collaborator

5k lines of tests; you weren't kidding.

@alice-i-cecile alice-i-cecile merged commit 69995d9 into DioxusLabs:main Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working testing Additional tests or improvements to the testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants