Expand text boxes in the preferences dialog to fill available space

Originally committed to SVN as r5865.
This commit is contained in:
Thomas Goyne 2011-11-16 21:59:39 +00:00
parent a6ecf821c9
commit da09d71239

View file

@ -119,7 +119,7 @@ OptionPage::OptionPage(wxTreebook *book, Preferences *parent, wxString name, int
template<class T>
void OptionPage::Add(wxSizer *sizer, wxString const& label, T *control) {
sizer->Add(new wxStaticText(this, -1, label), 1, wxEXPAND | wxALIGN_CENTRE_VERTICAL);
sizer->Add(control);
sizer->Add(control, wxSizerFlags().Expand());
}
void OptionPage::CellSkip(wxFlexGridSizer *flex) {