diff --git a/lact-gui/src/app/root_stack/mod.rs b/lact-gui/src/app/root_stack/mod.rs index 94a9bd4f..c4c9bbe3 100644 --- a/lact-gui/src/app/root_stack/mod.rs +++ b/lact-gui/src/app/root_stack/mod.rs @@ -21,7 +21,7 @@ pub struct RootStack { impl RootStack { pub fn new() -> Self { - let container = Stack::new(); + let container = Stack::builder().vexpand(true).build(); let info_page = InformationPage::new(); diff --git a/lact-gui/src/app/root_stack/oc_page/power_cap_frame.rs b/lact-gui/src/app/root_stack/oc_page/power_cap_frame.rs index fa9e1596..aa5233e2 100644 --- a/lact-gui/src/app/root_stack/oc_page/power_cap_frame.rs +++ b/lact-gui/src/app/root_stack/oc_page/power_cap_frame.rs @@ -35,7 +35,11 @@ impl PowerCapFrame { }); } - let scale = Scale::new(Orientation::Horizontal, Some(&adjustment)); + let scale = Scale::builder() + .orientation(Orientation::Horizontal) + .adjustment(&adjustment) + .hexpand(true) + .build(); scale.set_draw_value(false);