diff --git a/samples/widgets/dirpicker.cpp b/samples/widgets/dirpicker.cpp index 13a664bc8a..6614c0a8b2 100644 --- a/samples/widgets/dirpicker.cpp +++ b/samples/widgets/dirpicker.cpp @@ -162,7 +162,7 @@ void DirPickerWidgetsPage::CreateContent() // right pane m_sizer = new wxBoxSizer(wxVERTICAL); m_sizer->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer - m_sizer->Add(m_dirPicker, 0, wxALIGN_CENTER|wxALL, 5); + m_sizer->Add(m_dirPicker, 0, wxEXPAND|wxALL, 5); m_sizer->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer // global pane diff --git a/samples/widgets/filepicker.cpp b/samples/widgets/filepicker.cpp index 1c91ca6a6e..28cbc3f821 100644 --- a/samples/widgets/filepicker.cpp +++ b/samples/widgets/filepicker.cpp @@ -183,7 +183,7 @@ void FilePickerWidgetsPage::CreateContent() // right pane m_sizer = new wxBoxSizer(wxVERTICAL); m_sizer->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer - m_sizer->Add(m_filePicker, 0, wxALIGN_CENTER|wxALL, 5); + m_sizer->Add(m_filePicker, 0, wxEXPAND|wxALL, 5); m_sizer->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer // global pane