mirror of https://github.com/odrling/Aegisub
Use wxSizer::RepositionChildren instead of RecalcSizes on wx 3.1.3+
This commit is contained in:
parent
93b2794c85
commit
aecf09a64d
|
@ -240,8 +240,12 @@ void FrameMain::SetDisplayMode(int video, int audio) {
|
|||
TopSizer->Show(videoBox, showVideo, true);
|
||||
ToolsSizer->Show(audioBox, showAudio, true);
|
||||
|
||||
MainSizer->CalcMin();
|
||||
auto min_size = MainSizer->CalcMin();
|
||||
#if wxVERSION_NUMBER >= 3103
|
||||
MainSizer->RepositionChildren(min_size);
|
||||
#else
|
||||
MainSizer->RecalcSizes();
|
||||
#endif
|
||||
MainSizer->Layout();
|
||||
Layout();
|
||||
|
||||
|
|
Loading…
Reference in New Issue