mirror of https://github.com/odrling/Aegisub
lua: Scroll large dialogs automatically
This commit is contained in:
parent
0376c56a95
commit
5050bad8ac
|
@ -216,6 +216,7 @@ namespace Automation4 {
|
||||||
wxWindow *ww = config_dialog->CreateWindow(&w); // generate actual dialog contents
|
wxWindow *ww = config_dialog->CreateWindow(&w); // generate actual dialog contents
|
||||||
s->Add(ww, 0, wxALL, 5); // add contents to dialog
|
s->Add(ww, 0, wxALL, 5); // add contents to dialog
|
||||||
w.SetSizerAndFit(s);
|
w.SetSizerAndFit(s);
|
||||||
|
w.SetLayoutAdaptationMode(wxDIALOG_ADAPTATION_MODE_ENABLED);
|
||||||
w.CenterOnParent();
|
w.CenterOnParent();
|
||||||
w.ShowModal();
|
w.ShowModal();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue