Remove hardcoded widths for the labels in the color picker

This results in the controls being slightly misaligned, but that's not
as bad as truncating the labels.

Originally committed to SVN as r6786.
This commit is contained in:
Thomas Goyne 2012-05-15 13:39:40 +00:00
parent a97c7fa1f6
commit ad64e8e48a

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)), wxSizerFlags(1).Center().Left());
sizer->Add(new wxStaticText(this, -1, labels[i]), wxSizerFlags(1).Center().Left());
sizer->Add(inputs[i]);
}
sizer->AddGrowableCol(0,1);