From 96e427fe52eaca0de0c9b3b1027903b3a3ac9646 Mon Sep 17 00:00:00 2001 From: Azeem Bande-Ali Date: Sat, 17 May 2025 23:16:01 -0400 Subject: [PATCH] Allow multiline strings to expand in extension dialog Effect-type extensions can add parameters to the effect dialog. The string parameter supports the multiline property. Despite setting this property, the entry would only occupy a single line, even when more space is available. We fix this by adding `set_propagate_natural_height` which allows the ScrolledWindow to account for its children when it decides to expand or not. --- src/extension/prefdialog/parameter-string.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension/prefdialog/parameter-string.cpp b/src/extension/prefdialog/parameter-string.cpp index ac24c91bd6..07f7cc461c 100644 --- a/src/extension/prefdialog/parameter-string.cpp +++ b/src/extension/prefdialog/parameter-string.cpp @@ -201,8 +201,10 @@ Gtk::Widget *ParamString::get_widget(sigc::signal *changeSignal) auto const textarea = Gtk::make_managed(); textarea->set_vexpand(); textarea->set_has_frame(true); + textarea->set_propagate_natural_height(); auto const entry = Gtk::make_managed(this, changeSignal); + entry->set_vexpand(); textarea->set_child(*entry); UI::pack_start(*box, *textarea, true, true); -- GitLab