diff --git a/examples/3d/split_screen.rs b/examples/3d/split_screen.rs index 13840ae010..6622ffbc12 100644 --- a/examples/3d/split_screen.rs +++ b/examples/3d/split_screen.rs @@ -86,14 +86,22 @@ fn setup( style: Style { width: Val::Percent(100.), height: Val::Percent(100.), - padding: UiRect::all(Val::Px(20.)), ..default() }, ..default() }, )) .with_children(|parent| { - parent.spawn(TextBundle::from_section(*camera_name, TextStyle::default())); + parent.spawn( + TextBundle::from_section(*camera_name, TextStyle::default()).with_style( + Style { + position_type: PositionType::Absolute, + top: Val::Px(12.), + left: Val::Px(12.), + ..default() + }, + ), + ); buttons_panel(parent); }); }