diff --git a/samples/widgets/button.cpp b/samples/widgets/button.cpp index e6fb8662fb..a1e768f01b 100644 --- a/samples/widgets/button.cpp +++ b/samples/widgets/button.cpp @@ -475,6 +475,8 @@ void ButtonWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event)) void ButtonWidgetsPage::OnButtonChangeLabel(wxCommandEvent& WXUNUSED(event)) { m_button->SetLabel(m_textLabel->GetValue()); + + m_sizerButton->Layout(); } void ButtonWidgetsPage::OnButton(wxCommandEvent& WXUNUSED(event))