We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v0.10
I added 2 NodeBundles. The parent is blue, the child is red. The child should have a max size of 600 px.
use bevy::prelude::*; fn main() { let mut app = App::new(); app.add_plugins( DefaultPlugins ); app.add_startup_system(setup); app.run(); } fn setup( mut commands: Commands, ) { commands.spawn(Camera2dBundle::default()); commands.spawn(NodeBundle { style: Style { size: Size::new(Val::Auto, Val::Percent(100.0)), ..default() }, background_color: Color::BLUE.into(), ..default() }).with_children(|damage_report| { damage_report.spawn(( NodeBundle { style: Style { margin: UiRect::all(Val::Px(5.0)), padding: UiRect::all(Val::Px(5.0)), size: Size::new(Val::Px(450.0), Val::Undefined), max_size: Size::new(Val::Undefined, Val::Px(600.0)), flex_direction: FlexDirection::Column, justify_content: JustifyContent::SpaceEvenly, align_items: AlignItems::FlexStart, ..default() }, background_color: Color::RED.into(), ..default() }, )); }); }
The red child node fills the full parent node, even though the max_size is limited to 600 px.
The text was updated successfully, but these errors were encountered:
I forgot, it was working fine with bevy 0.9.
Sorry, something went wrong.
I believe this would be fixed by #7948. Would you mind checking?
I can confirm that #7948 fixes the example above.
No branches or pull requests
Bevy version
v0.10
What you did
I added 2 NodeBundles. The parent is blue, the child is red. The child should have a max size of 600 px.
What went wrong
The red child node fills the full parent node, even though the max_size is limited to 600 px.
Additional information
The text was updated successfully, but these errors were encountered: