Use appropriate initial size for the wrapsizer sample frame

Ensure the frame is big enough to show its contents, otherwise some
controls were truncated and not visible at all initially, at least under
MSW.
This commit is contained in:
Vadim Zeitlin
2022-05-11 15:24:34 +01:00
parent 7f32d9b752
commit d456f87321

View File

@@ -146,6 +146,8 @@ WrapSizerFrame::WrapSizerFrame()
// Set sizer for the panel // Set sizer for the panel
m_panel->SetSizer(sizerRoot); m_panel->SetSizer(sizerRoot);
SetClientSize(m_panel->GetBestSize());
Show(); Show();
} }