fix: alignment

This commit is contained in:
Ilya Zlobintsev
2023-01-05 09:56:56 +02:00
parent 86c92e8cb5
commit 25244d632e
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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();
@@ -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);