Keep the params' scrollbar clear of the spin buttons

The overlay scrollbar sat over the "+" of each spin button and took
clicks meant for it; give the param grid a gutter on its right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Si
2026-09-24 00:48:33 +02:00
co-authored by Claude Opus 5.5
parent 536b8620ea
commit 7d122ddd6c
+3
View File
@@ -192,6 +192,9 @@ Gtk::Widget& EffectorWindow::buildChainTab() {
params->append(paramHeading_); params->append(paramHeading_);
paramGrid_.set_column_spacing(8); paramGrid_.set_column_spacing(8);
paramGrid_.set_row_spacing(6); paramGrid_.set_row_spacing(6);
// A gutter for the overlay scrollbar, which otherwise sits over the spin
// buttons' "+" and takes the clicks meant for it.
paramGrid_.set_margin_end(14);
auto* paramScroller = Gtk::make_managed<Gtk::ScrolledWindow>(); auto* paramScroller = Gtk::make_managed<Gtk::ScrolledWindow>();
paramScroller->set_policy(Gtk::PolicyType::NEVER, Gtk::PolicyType::AUTOMATIC); paramScroller->set_policy(Gtk::PolicyType::NEVER, Gtk::PolicyType::AUTOMATIC);
paramScroller->set_child(paramGrid_); paramScroller->set_child(paramGrid_);