diff --git a/examples/games/game_menu.rs b/examples/games/game_menu.rs index 8a24115749325..cc96169601ec1 100644 --- a/examples/games/game_menu.rs +++ b/examples/games/game_menu.rs @@ -151,7 +151,6 @@ mod game { NodeBundle { style: Style { width: Val::Percent(100.0), - height: Val::Percent(100.0), // center children align_items: AlignItems::Center, justify_content: JustifyContent::Center, diff --git a/examples/mobile/src/lib.rs b/examples/mobile/src/lib.rs index b89a98490c4ee..6e513942d19bf 100644 --- a/examples/mobile/src/lib.rs +++ b/examples/mobile/src/lib.rs @@ -110,7 +110,6 @@ fn setup_scene( position_type: PositionType::Absolute, left: Val::Px(50.0), right: Val::Px(50.0), - top: Val::Auto, bottom: Val::Px(50.0), ..default() }, diff --git a/examples/ui/display_and_visibility.rs b/examples/ui/display_and_visibility.rs index 799aca79fd3f4..5ed890e372675 100644 --- a/examples/ui/display_and_visibility.rs +++ b/examples/ui/display_and_visibility.rs @@ -412,7 +412,6 @@ where .spawn(( ButtonBundle { style: Style { - //height: Val::Px(24.), align_self: AlignSelf::FlexStart, padding: UiRect::axes(Val::Px(5.), Val::Px(1.)), ..Default::default() diff --git a/examples/ui/flex_layout.rs b/examples/ui/flex_layout.rs index 6e7c736ee24e1..3b597ebeaa0ca 100644 --- a/examples/ui/flex_layout.rs +++ b/examples/ui/flex_layout.rs @@ -162,12 +162,7 @@ fn spawn_nested_text_bundle( .spawn(NodeBundle { style: Style { margin, - padding: UiRect { - top: Val::Px(1.), - left: Val::Px(5.), - right: Val::Px(5.), - bottom: Val::Px(1.), - }, + padding: UiRect::axes(Val::Px(5.), Val::Px(1.)), ..Default::default() }, background_color: BackgroundColor(background_color), diff --git a/examples/ui/grid.rs b/examples/ui/grid.rs index 0931c0767bd14..ed168f05cbc1c 100644 --- a/examples/ui/grid.rs +++ b/examples/ui/grid.rs @@ -183,7 +183,6 @@ fn spawn_layout(mut commands: Commands, asset_server: Res) { width: Val::Percent(60.), height: Val::Px(300.), max_width: Val::Px(600.), - max_height: Val::Auto, ..default() }, background_color: BackgroundColor(Color::Rgba { diff --git a/examples/ui/overflow_debug.rs b/examples/ui/overflow_debug.rs index 8b71856616895..9a087d780db6d 100644 --- a/examples/ui/overflow_debug.rs +++ b/examples/ui/overflow_debug.rs @@ -82,7 +82,6 @@ fn setup(mut commands: Commands, asset_server: Res) { .spawn(NodeBundle { style: Style { width: Val::Percent(100.), - height: Val::Percent(100.), flex_direction: FlexDirection::Column, ..default() }, diff --git a/examples/ui/relative_cursor_position.rs b/examples/ui/relative_cursor_position.rs index 57eba52064ed9..079637d8c4d67 100644 --- a/examples/ui/relative_cursor_position.rs +++ b/examples/ui/relative_cursor_position.rs @@ -19,7 +19,6 @@ fn setup(mut commands: Commands, asset_server: Res) { .spawn(NodeBundle { style: Style { width: Val::Percent(100.), - height: Val::Percent(100.), align_items: AlignItems::Center, justify_content: JustifyContent::Center, flex_direction: FlexDirection::Column, diff --git a/examples/ui/ui.rs b/examples/ui/ui.rs index 6cf9a3a07d720..2a0478b6589b0 100644 --- a/examples/ui/ui.rs +++ b/examples/ui/ui.rs @@ -29,7 +29,6 @@ fn setup(mut commands: Commands, asset_server: Res) { .spawn(NodeBundle { style: Style { width: Val::Percent(100.0), - height: Val::Percent(100.0), justify_content: JustifyContent::SpaceBetween, ..default() },