From 9c36c2c9fd370f34e06db6e83aed23b3445a36de Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 Nov 2022 22:32:03 +0100 Subject: Lay things out better with long audio output names. --- src/wx/config_dialog.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index 9e68d8cb3..69ad4e22a 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -861,14 +861,14 @@ SoundPage::setup () _sound = new CheckBox (_panel, _("Play sound via")); table->Add (_sound, wxGBPosition (r, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL); - auto s = new wxBoxSizer (wxHORIZONTAL); + _play_sound_via_sizer = new wxBoxSizer (wxHORIZONTAL); _sound_api = new Choice(_panel); - s->Add(_sound_api, 0); + _play_sound_via_sizer->Add(_sound_api, 0); _sound_output = new wxChoice (_panel, wxID_ANY); - s->Add(_sound_output, 0, wxLEFT, DCPOMATIC_SIZER_X_GAP); + _play_sound_via_sizer->Add(_sound_output, 0, wxLEFT, DCPOMATIC_SIZER_X_GAP); _sound_output_details = new wxStaticText (_panel, wxID_ANY, wxT("")); - s->Add (_sound_output_details, 1, wxALIGN_CENTER_VERTICAL | wxLEFT, DCPOMATIC_SIZER_X_GAP); - table->Add (s, wxGBPosition(r, 1)); + _play_sound_via_sizer->Add(_sound_output_details, 1, wxALIGN_CENTER_VERTICAL | wxLEFT, DCPOMATIC_SIZER_X_GAP); + table->Add(_play_sound_via_sizer, wxGBPosition(r, 1)); ++r; add_label_to_sizer (table, _panel, _("Mapping"), true, wxGBPosition(r, 0)); @@ -920,6 +920,8 @@ SoundPage::update_sound_outputs() if (!_sound_output->IsEmpty()) { _sound_output->SetSelection(0); } + + _play_sound_via_sizer->Layout(); } void -- cgit v1.2.3