From ff87733cd8ca178e2a8eafc037c51fc82b110475 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Tue, 30 Jun 2020 19:35:15 +0200 Subject: [PATCH] Refresh window layout after changing wxSpinCtrl base in widgets sample Changing the base of the number changes the size of wxSpinCtrl so the layout needs to be reset to account this new size. --- samples/widgets/spinbtn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/widgets/spinbtn.cpp b/samples/widgets/spinbtn.cpp index 59b2c3b6c7..51eabc465a 100644 --- a/samples/widgets/spinbtn.cpp +++ b/samples/widgets/spinbtn.cpp @@ -480,6 +480,8 @@ void SpinBtnWidgetsPage::OnButtonSetBase(wxCommandEvent& WXUNUSED(event)) { wxLogWarning("Setting base %d failed.", m_base); } + + m_sizerSpin->Layout(); } void SpinBtnWidgetsPage::OnButtonSetValue(wxCommandEvent& WXUNUSED(event))