From ad64e8e48a28c391c0f8928d8265dc9d6aea92db Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 15 May 2012 13:39:40 +0000 Subject: [PATCH] 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. --- aegisub/src/dialog_colorpicker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_colorpicker.cpp b/aegisub/src/dialog_colorpicker.cpp index 343c2988d..eba148308 100644 --- a/aegisub/src/dialog_colorpicker.cpp +++ b/aegisub/src/dialog_colorpicker.cpp @@ -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);