Commit 6ff6ce5c authored by Sarah's avatar Sarah
Browse files

Fix scaling with window

parent c91fc842
Pipeline #917 canceled with stage
......@@ -108,10 +108,11 @@ fn setup(
style: Style {
flex_direction: FlexDirection::ColumnReverse,
align_items: AlignItems::Center,
margin: Rect {
margin: Rect::all(Val::Auto),
position: Rect {
left: Val::Auto,
right: Val::Auto,
top: Val::Percent(25.0),
top: Val::Percent(10.0),
bottom: Val::Auto,
},
..Default::default()
......@@ -123,6 +124,7 @@ fn setup(
..Default::default()
})
.with_children(|parent| {
parent
.spawn_bundle(ButtonBundle {
style: button_style.clone(),
......@@ -144,6 +146,7 @@ fn setup(
..Default::default()
});
});
parent
.spawn_bundle(ButtonBundle {
style: button_style.clone(),
......@@ -165,6 +168,7 @@ fn setup(
..Default::default()
});
});
parent
.spawn_bundle(ButtonBundle {
style: button_style.clone(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment