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:
@@ -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_);
|
||||||
|
|||||||
Reference in New Issue
Block a user