From 429c5c9491151aa95a9a61abd5956bd6cebd4a1f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 22 Aug 2018 19:44:14 +0100 Subject: [PATCH] Tweak spacing. --- src/wx/text_panel.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index 3315e5cf9..8c9ac7d64 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -94,8 +94,9 @@ TextPanel::TextPanel (ContentPanel* p, TextType t) wxBoxSizer* offset = new wxBoxSizer (wxHORIZONTAL); add_label_to_sizer (offset, this, _("X"), true); _x_offset = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1)); - offset->Add (_x_offset); - add_label_to_sizer (offset, this, _("%"), false); + offset->Add (_x_offset, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP); + wxStaticText* pc = new wxStaticText (this, wxID_ANY, _("%")); + offset->Add (pc, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP * 2); add_label_to_sizer (offset, this, _("Y"), true); _y_offset = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1)); offset->Add (_y_offset, 0); @@ -107,8 +108,9 @@ TextPanel::TextPanel (ContentPanel* p, TextType t) wxBoxSizer* scale = new wxBoxSizer (wxHORIZONTAL); add_label_to_sizer (scale, this, _("X"), true); _x_scale = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1)); - scale->Add (_x_scale); - add_label_to_sizer (scale, this, _("%"), false); + scale->Add (_x_scale, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP); + pc = new wxStaticText (this, wxID_ANY, _("%")); + scale->Add (pc, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP * 2); add_label_to_sizer (scale, this, _("Y"), true); _y_scale = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1)); scale->Add (_y_scale, 0); -- 2.30.2