add scrolled window to allow more toolboxes'

This commit is contained in:
2024-03-19 17:31:24 +01:00
parent e998b6f1a9
commit 5da62888d1

View File

@@ -1,5 +1,6 @@
use crate::gtk::Align; use crate::gtk::Align;
use relm4::factory::FactoryHashMap; use relm4::factory::FactoryHashMap;
use relm4::gtk::PolicyType;
use relm4::RelmWidgetExt; use relm4::RelmWidgetExt;
use relm4::{ use relm4::{
actions::{RelmAction, RelmActionGroup}, actions::{RelmAction, RelmActionGroup},
@@ -92,7 +93,10 @@ impl Component for App {
} }
}, },
gtk::ScrolledWindow {
set_hexpand: true,
set_vexpand: true,
set_hscrollbar_policy: PolicyType::Never,
#[local_ref] #[local_ref]
container_box -> gtk::ListBox { container_box -> gtk::ListBox {
@@ -101,6 +105,8 @@ impl Component for App {
set_margin_all: 30, set_margin_all: 30,
set_css_classes: &["boxed-list"], set_css_classes: &["boxed-list"],
}, },
},
} }
} }