You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!!!note "On Sizing Elements" Minimum and preferred sizes are defined in regular units, while the flexible sizes are defined in relative units. If any layout element has flexible size greater than zero, it means that all the available space will be filled out. The relative flexible size values of the siblings determines how big a proportion of the available space each sibling fills out. Most commonly, flexible width and height is set to just 0 or 1.
This does not appear to describe the actual behavior.
Based on the docs I would expect that if all elements have a flexible size of zero then the available space would not be filled. If some elements have a flexible size greater than zero and some have a flexible size of zero the docs make it sound like the elements with flexible size zero will not expand and the elements with a greater flexible size will expand, with the expansion of each such element proportional to their flexible size.
Not sure how the documentation should read to reflect the actual behavior. I assume the implementation can't be fixed to match the docs as that would break compatibility with existing mods.
docs/ui/attributes.md contains:
This does not appear to describe the actual behavior.
Based on the docs I would expect that if all elements have a flexible size of zero then the available space would not be filled. If some elements have a flexible size greater than zero and some have a flexible size of zero the docs make it sound like the elements with flexible size zero will not expand and the elements with a greater flexible size will expand, with the expansion of each such element proportional to their flexible size.
Not sure how the documentation should read to reflect the actual behavior. I assume the implementation can't be fixed to match the docs as that would break compatibility with existing mods.
See the test cases below:
The text was updated successfully, but these errors were encountered: