diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-09 22:32:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-09 22:32:03 +0100 |
| commit | 9c36c2c9fd370f34e06db6e83aed23b3445a36de (patch) | |
| tree | 9e6dc72802ad6d1ee9f8f7d50a0a3ed2eea8ab95 | |
| parent | 2b7a83a4bb3a7874444629987f992fbef78cde86 (diff) | |
Lay things out better with long audio output names.
| -rw-r--r-- | src/wx/config_dialog.cc | 12 |
1 files 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 |
