diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-10 01:37:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-10 01:37:01 +0000 |
| commit | d2118a1cc5dfce446caa33a9917ef9129fc576e1 (patch) | |
| tree | 7e7171ef3e19b45211a62c06cd20a8684e6f4f9f /src | |
| parent | b9f427f1365c7aa25b0f2282a4dcefa25c3d8ef6 (diff) | |
Fix layout of KDM dialog with lots of cinemas.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/kdm_dialog.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index 7bd256d03..0ee502d49 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -77,16 +77,17 @@ KDMDialog::KDMDialog (wxWindow* parent, boost::shared_ptr<const Film> film) _output = new KDMOutputPanel (this, film->interop ()); vertical->Add (_output, 0, wxEXPAND | wxTOP, DCPOMATIC_SIZER_GAP); - /* Make an overall sizer to get a nice border, and put some buttons in */ - - wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL); - overall_sizer->Add (vertical, 0, wxEXPAND | wxTOP | wxLEFT | wxRIGHT, DCPOMATIC_DIALOG_BORDER); wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL); if (buttons) { - overall_sizer->Add (buttons, 0, wxEXPAND | wxALL, DCPOMATIC_SIZER_Y_GAP); + vertical->Add (buttons, 0, wxEXPAND | wxALL, DCPOMATIC_SIZER_Y_GAP); } + /* Make an overall sizer to get a nice border, and put some buttons in */ + + wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL); + overall_sizer->Add (vertical, 0, wxEXPAND | wxTOP | wxLEFT | wxRIGHT, DCPOMATIC_DIALOG_BORDER); + /* Bind */ _screens->ScreensChanged.connect (boost::bind (&KDMDialog::setup_sensitivity, this)); |
