Vertically center the labels in the color picker dialog. Closes #1467.

Originally committed to SVN as r6672.
This commit is contained in:
Thomas Goyne 2012-04-06 15:51:14 +00:00
parent 309bc35af3
commit db69fdbbcd
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ wxSizer *DialogColorPicker::MakeColorInputSizer(wxString (&labels)[N], Control *
{
wxFlexGridSizer * sizer = new wxFlexGridSizer(2, 5, 5);
for (int i = 0; i < N; ++i) {
sizer->Add(new wxStaticText(this, -1, labels[i], wxDefaultPosition, wxSize(40, -1)), 1, wxALIGN_CENTER_VERTICAL|wxEXPAND);
sizer->Add(new wxStaticText(this, -1, labels[i], wxDefaultPosition, wxSize(40, -1)), wxSizerFlags(1).Center().Left());
sizer->Add(inputs[i]);
}
sizer->AddGrowableCol(0,1);