From 29751be9c828107be5b0ad3172f478263c516e25 Mon Sep 17 00:00:00 2001 From: cnmcdee Date: Tue, 1 Dec 2026 02:03:07 +0000 Subject: [PATCH] Make Inspector property rows expand to fill the panel width The property editors in the grid sat at their natural width while the Bulk parameter fields below filled the panel. Set hexpand on the control in add_row so the control column takes the extra width, like the Bulk fields. Entries, spins, combos and the entry+Pick boxes all stretch; the label column stays narrow. --- crates/lightgui-designer/src/inspector.rs | 5 +++++ 1 file changed, 5 insertions(+) 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); }