mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Use wxSizer::RepositionChildren instead of RecalcSizes on wx 3.1.3+
This commit is contained in:
parent
b07648410d
commit
d32154c423
@ -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…
x
Reference in New Issue
Block a user