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:
parent
a97c7fa1f6
commit
ad64e8e48a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue