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

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

Merged
merged 30 commits into from
Feb 3, 2023

Conversation

nicoburns
Copy link
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
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