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

Add auto min-size #25

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Add auto min-size #25

merged 2 commits into from
Sep 18, 2023

Conversation

geom3trik
Copy link
Collaborator

This allows nodes to have a min-size of their content. For example, a stretch node might have a size of 200x200 after computation, but let's say the node has a child that is 300x300 and a min-size (min-width & min-height) of Auto, then the node would instead get a size of 300x300. i.e. it can't be smaller than its contents.

To avoid a breaking change the default min-width/min-height is 0px rather than Auto.

@geom3trik geom3trik merged commit 7a9cb4f into main Sep 18, 2023
4 checks passed
@geom3trik geom3trik deleted the auto-min-size branch September 18, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant