Allow audio analysis window to expand horizontally.
authorCarl Hetherington <cth@carlh.net>
Mon, 26 Mar 2018 13:44:24 +0000 (14:44 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 26 Mar 2018 13:44:24 +0000 (14:44 +0100)
src/wx/audio_dialog.cc

index a08d29ad8c7663ab99d9e36a13468507a26c9c3d..938ecd1d3396223a8d3066d4b470821c5e448bfb 100644 (file)
@@ -85,7 +85,7 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film, shared_ptr<Co
        _loudness_range = new wxStaticText (this, wxID_ANY, wxT (""));
        left->Add (_loudness_range, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP);
 
        _loudness_range = new wxStaticText (this, wxID_ANY, wxT (""));
        left->Add (_loudness_range, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP);
 
-       lr_sizer->Add (left, 1, wxALL, 12);
+       lr_sizer->Add (left, 1, wxALL | wxEXPAND, 12);
 
        wxBoxSizer* right = new wxBoxSizer (wxVERTICAL);
 
 
        wxBoxSizer* right = new wxBoxSizer (wxVERTICAL);
 
@@ -135,7 +135,7 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film, shared_ptr<Co
 
        lr_sizer->Add (right, 0, wxALL, 12);
 
 
        lr_sizer->Add (right, 0, wxALL, 12);
 
-       overall_sizer->Add (lr_sizer);
+       overall_sizer->Add (lr_sizer, 0, wxEXPAND);
 
 #ifdef DCPOMATIC_LINUX
        wxSizer* buttons = CreateSeparatedButtonSizer (wxCLOSE);
 
 #ifdef DCPOMATIC_LINUX
        wxSizer* buttons = CreateSeparatedButtonSizer (wxCLOSE);