lua: Scroll large dialogs automatically

This commit is contained in:
arch1t3cht 2023-03-04 12:52:46 +01:00
parent 0376c56a95
commit 5050bad8ac
1 changed files with 1 additions and 0 deletions

View File

@ -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();
});