-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Size Constraints Example #7956
Size Constraints Example #7956
Conversation
It might be a good idea to give the node a non-zero content size to illustrate the difference between |
Yeah, material for a separate example I think |
The flex-basis property seems to have no effect here. If that's expected, I think we should probably just cut it from this example (and add another one to demonstrate this). |
Flex basis would have an effect if there were two child nodes (where it could be controlled separately). Which might make for a better example? Otherwise I agree that flex-basis probably ought to be removed. |
That's odd, |
@alice-i-cecile, you could try running |
Ah, I didn't actually try it. I was just mentally simulating it. But I'd hallucinated a |
Working correctly now! I had to change only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some explanatory text that explains which combinations are good to test and why some things work like they do (that's rendered in the example) would be nice but I wouldn't consider that necessary or blocking.
Also, damn bevy_ui is verbose! We badly need that sugar! But that's not an issue with this example.
Objective
Add a simple example demonstrating how to use size constraints.
Related to #7946
Solution
Changelog
size_constraints