-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Style.overflow
not hidding overflowed nodes
#8016
Comments
At the moment |
I think we could get the correct behaviour here with a change in |
Setting |
Yeah, that's actually not a bad idea. That's basically what Taffy would do if |
I have a WIP branch implementing |
Bevy version
What you did
Given
I set it up like:
LineBreakOn
example #7761 to usegap/padding
to control spacing between columns.width
for 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::hidden
set.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
LineBreakOn
example #7761min_size: Size::new(Val::Px(0.), Val::Auto)
in the columns.The text was updated successfully, but these errors were encountered: