diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 6fe5e8b7fd..e1a737444d 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -224,6 +224,8 @@ GenericPluginUI::~GenericPluginUI () void GenericPluginUI::scroller_size_request (Gtk::Requisition* a) { + GtkRequisition request = hpacker.size_request(); + Glib::RefPtr window (get_window()); Glib::RefPtr screen; @@ -232,6 +234,7 @@ GenericPluginUI::scroller_size_request (Gtk::Requisition* a) } if (!screen) { + a->width = request.width; return; } @@ -243,8 +246,6 @@ GenericPluginUI::scroller_size_request (Gtk::Requisition* a) const int maximum_width = monitor.get_width() * 0.9; - GtkRequisition request = hpacker.size_request(); - if (request.width > maximum_width) { for (vector::const_iterator cuip = input_controls.begin(); cuip != input_controls.end();