Remove strange proportion values when adding content buttons.
authorCarl Hetherington <cth@carlh.net>
Sun, 27 Mar 2022 21:39:21 +0000 (23:39 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 28 Mar 2022 07:54:41 +0000 (09:54 +0200)
These seemed to cause the buttons to appear in strange places in some
cases.

src/wx/content_panel.cc

index ceebd6e14282f846d8f174fd323abad7509c3a2c..56a342bfe4c45e9f9dd7b4fe0b8781d3a7ec28dd 100644 (file)
@@ -104,11 +104,11 @@ ContentPanel::ContentPanel (wxNotebook* n, shared_ptr<Film> film, weak_ptr<FilmV
 
                _add_folder = new Button (_top_panel, _("Add folder..."));
                _add_folder->SetToolTip (_("Add a folder of image files (which will be used as a moving image sequence) or a folder of sound files."));
-               b->Add (_add_folder, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
+               b->Add (_add_folder, 0, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
 
                _add_dcp = new Button (_top_panel, _("Add DCP..."));
                _add_dcp->SetToolTip (_("Add a DCP."));
-               b->Add (_add_dcp, 1, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
+               b->Add (_add_dcp, 0, wxEXPAND | wxALL, DCPOMATIC_BUTTON_STACK_GAP);
 
                _remove = new Button (_top_panel, _("Remove"));
                _remove->SetToolTip (_("Remove the selected piece of content from the film."));