diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-20 11:30:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-20 11:30:10 +0100 |
| commit | 85fa546c709a1060954044986dc0f07554f96ef7 (patch) | |
| tree | 62738655b973921ea066995e5ee62cae890d22e6 /src | |
| parent | 69a7c253174091d12b0efb37f2a4ac5e61dfaa3a (diff) | |
Expand the DCP name entry a bit.
Hat-tip to Carsten Kurz for the idea!
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/dcp_panel.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc index b925213ad..6de9e3d75 100644 --- a/src/wx/dcp_panel.cc +++ b/src/wx/dcp_panel.cc @@ -160,8 +160,10 @@ DCPPanel::add_to_grid () { int r = 0; - add_label_to_sizer (_grid, _name_label, true, wxGBPosition (r, 0)); - _grid->Add (_name, wxGBPosition(r, 1), wxDefaultSpan, wxEXPAND | wxLEFT | wxRIGHT); + auto name_sizer = new wxBoxSizer (wxHORIZONTAL); + name_sizer->Add (_name_label, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP); + name_sizer->Add (_name, 1, wxALIGN_CENTER_VERTICAL); + _grid->Add (name_sizer, wxGBPosition(r, 0), wxGBSpan(1, 2), wxEXPAND); ++r; int flags = wxALIGN_CENTER_VERTICAL; |
