Use wxSizer::RepositionChildren instead of RecalcSizes on wx 3.1.3+

This commit is contained in:
Myaamori 2020-11-22 18:18:19 +00:00 committed by Ryan Lucia
parent 93b2794c85
commit aecf09a64d

View file

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