- m_sizer->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer
- m_sizer->Add(m_filePicker, 0, wxEXPAND|wxALL, 5);
- m_sizer->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer
+ m_sizer->AddStretchSpacer();
+ m_sizer->Add(m_filePicker, wxSizerFlags().Expand().Border());
+ m_sizer->AddStretchSpacer();
+ m_sizer->Add(m_labelPath, wxSizerFlags().Expand().Border());
+ m_sizer->AddStretchSpacer();