diff options
-rw-r--r-- | gtk2_ardour/processor_box.cc | 9 | ||||
-rw-r--r-- | gtk2_ardour/processor_box.h | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 504ad10f32..9beb733617 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -1568,6 +1568,7 @@ ProcessorEntry::PluginInlineDisplay::PluginInlineDisplay (ProcessorEntry& e, boo : PluginDisplay (p, max_height) , _entry (e) , _scroll (false) + , _given_max_height (max_height) { std::string postfix = string_compose(_("\n%1+double-click to toggle inline-display"), Keyboard::tertiary_modifier_name ()); @@ -1639,11 +1640,15 @@ ProcessorEntry::PluginInlineDisplay::update_height_alloc (uint32_t inline_height } if (shm != _cur_height) { - if (_scroll == sc || _cur_height < shm) { - queue_resize (); + queue_resize (); + if (!_scroll && sc) { + _max_height = shm; + } else { + _max_height = _given_max_height; } _cur_height = shm; } + _scroll = sc; } diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h index 5772e6dbd1..81c5c8e20f 100644 --- a/gtk2_ardour/processor_box.h +++ b/gtk2_ardour/processor_box.h @@ -258,6 +258,7 @@ private: ProcessorEntry& _entry; bool _scroll; + const uint32_t _given_max_height; }; class LuaPluginDisplay : public PluginInlineDisplay { |