Skip to content

Fix min_max computation when resolving flexible lengths to follow the spec #122

@TimJentzsch

Description

@TimJentzsch

What problem does this solve or what need does it fill?

The min_max computation when resolving flexible lengths seems to not follow the spec:
https://github.com/DioxusLabs/sprawl/blob/11701ee97d68b22a231cac081aab4308af136706/src/flexbox.rs#L669-L675

What solution would you like?

The computation should follow the spec. Otherwise, the computation should probably be refactored.

What alternative(s) have you considered?

If it works, we could keep it as-is. Probably a bad idea though.

Additional context

Originally discussed in #39.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions