diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2017-08-15 21:05:13 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-06-20 21:06:16 +0200 |
commit | f647ac7daea3d5ae8bfb2903bff67fffcc6197df (patch) | |
tree | c7c5b384cfb43b2b8cc52947c279717af6d5821d /gtk2_ardour/processor_box.h | |
parent | 869d48c9a68331547c1f84e3dac12ea444d46376 (diff) |
Allow plugin inline displays to shrink
Plugin inline displays were forbidden to shrink as this might cause a deadlock
when the shrinkage causes the scrollbar to disappear.
display shrink → scrollbar unneeded → scrollbar disappears →
more horizontal space -> display grows -> scrollbar appears →
less horizontal space -> display shrink and so forth
This was formerly avoided by not allowing display shrinkage.
The solution proposed here sets the maximum height of the display to the
current height, if a scrollbar is present during resizing and has not been
present during the last resizing. So if this scrollbar disappears (after
resizing it might no longer be needed), the display would have the possibility
to grow, but it does not grow vertically as the maximum height is limited to
the current height.
Diffstat (limited to 'gtk2_ardour/processor_box.h')
-rw-r--r-- | gtk2_ardour/processor_box.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |