diff --git a/crates/lightgui-designer/src/inspector.rs b/crates/lightgui-designer/src/inspector.rs index 58f242a..e2df3f2 100644 --- a/crates/lightgui-designer/src/inspector.rs +++ b/crates/lightgui-designer/src/inspector.rs @@ -20,6 +20,11 @@ fn add_row(grid: >k::Grid, row: i32, label: &str, control: >k::Widget) { let lab = gtk::Label::new(Some(label)); lab.set_halign(gtk::Align::Start); grid.attach(&lab, 0, row, 1, 1); + // The control column expands to fill the panel width (like the + // Bulk parameter fields below the grid): without hexpand the + // controls sat at their natural width and the rest of the panel + // was wasted space. + control.set_hexpand(true); grid.attach(control, 1, row, 1, 1); }