diff --git a/crates/bevy_ui/src/ui_node.rs b/crates/bevy_ui/src/ui_node.rs index d7e5a02fe2..588cb141d3 100644 --- a/crates/bevy_ui/src/ui_node.rs +++ b/crates/bevy_ui/src/ui_node.rs @@ -247,7 +247,9 @@ pub struct Style { pub flex_grow: f32, /// How to shrink if there's not enough space available pub flex_shrink: f32, - /// The initial size of the item + /// The initial length of the main axis, before other properties are applied. + /// + /// If both are set, `flex_basis` overrides `size` on the main axis but it obeys the bounds defined by `min_size` and `max_size`. pub flex_basis: Val, /// The ideal size of the flexbox ///