Skip to content

Commit

Permalink
also fix mobile example
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jun 26, 2024
1 parent 4a03455 commit 24f16dc
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions examples/mobile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,18 @@ fn setup_scene(

// Test ui
commands
.spawn((
ButtonBundle {
style: Style {
justify_content: JustifyContent::Center,
align_items: AlignItems::Center,
position_type: PositionType::Absolute,
left: Val::Px(50.0),
right: Val::Px(50.0),
bottom: Val::Px(50.0),
..default()
},
.spawn(ButtonBundle {
style: Style {
justify_content: JustifyContent::Center,
align_items: AlignItems::Center,
position_type: PositionType::Absolute,
left: Val::Px(50.0),
right: Val::Px(50.0),
bottom: Val::Px(50.0),
..default()
},
BackgroundColor(Color::WHITE),
))
..default()
})
.with_children(|b| {
b.spawn(
TextBundle::from_section(
Expand Down

0 comments on commit 24f16dc

Please sign in to comment.