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
This removes explicit width for columns, and leverages width: Val::Auto, flex_grow: 1.0 & flex_basis: Val::Px(0.), which is a way of splitting columns in equal widths with flex.
When the columns width is bigger than the children width, then everything is OK:
If the window width is changed, columns shrink. When column width is smaller than the children width, it should overflow. Instead the column width equals the children width. Columns get pushed off-screen.
Bevy version
What you did
Given
I set it up like:
LineBreakOnexample #7761 to usegap/paddingto control spacing between columns.widthfor columns, and leverageswidth: Val::Auto,flex_grow: 1.0&flex_basis: Val::Px(0.),which is a way of splitting columns in equal widths with flex.Overflow::hiddenset.Example code
Reproduction code
What went wrong
When the columns width is bigger than the children width, then everything is OK:
If the window width is changed, columns shrink. When column width is smaller than the children width, it should overflow. Instead the column width equals the children width. Columns get pushed off-screen.
NOTE: Here we should see 5 narrow columns.
Additional information
LineBreakOnexample #7761min_size: Size::new(Val::Px(0.), Val::Auto)in the columns.