From 5050bad8ac0a41d066d1aa5842d99acd34094690 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Sat, 4 Mar 2023 12:52:46 +0100 Subject: [PATCH] lua: Scroll large dialogs automatically --- src/auto4_base.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/auto4_base.cpp b/src/auto4_base.cpp index 388e1fa3d..043d6ad6e 100644 --- a/src/auto4_base.cpp +++ b/src/auto4_base.cpp @@ -216,6 +216,7 @@ namespace Automation4 { wxWindow *ww = config_dialog->CreateWindow(&w); // generate actual dialog contents s->Add(ww, 0, wxALL, 5); // add contents to dialog w.SetSizerAndFit(s); + w.SetLayoutAdaptationMode(wxDIALOG_ADAPTATION_MODE_ENABLED); w.CenterOnParent(); w.ShowModal(); });