diff --git a/samples/webrequest/webrequest.cpp b/samples/webrequest/webrequest.cpp index 52a347f242..1e861d1ed1 100644 --- a/samples/webrequest/webrequest.cpp +++ b/samples/webrequest/webrequest.cpp @@ -153,7 +153,7 @@ public: m_startButton->Bind(wxEVT_BUTTON, &WebRequestFrame::OnStartButton, this); btnSizer->AddButton(m_startButton); btnSizer->Realize(); - mainSizer->Add(btnSizer, wxSizerFlags().Border()); + mainSizer->Add(btnSizer, wxSizerFlags().Expand().Border()); wxCommandEvent evt; OnPostCheckBox(evt);