summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-27 14:08:52 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-27 14:08:52 +0100
commit88b63f55cd4cc76d6da8914bada9d3cd3c6cd2bb (patch)
tree67244dddde24cc5e6d6b224a862b68d3ae72abb9 /src
parent2d777cdbd6017463fe6bd62e2d982d273811d7de (diff)
Fix some untidy layout.
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_advanced_dialog.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/wx/content_advanced_dialog.cc b/src/wx/content_advanced_dialog.cc
index d78adedea..8dd5ee78c 100644
--- a/src/wx/content_advanced_dialog.cc
+++ b/src/wx/content_advanced_dialog.cc
@@ -73,10 +73,8 @@ ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptr<Conte
add_label_to_sizer (sizer, this, _("Video filters"), true, wxGBPosition(r, 0));
_filters = new StaticText (this, _("None"), wxDefaultPosition, size);
_filters_button = new Button (this, _("Edit..."));
- auto filters = new wxBoxSizer (wxHORIZONTAL);
- filters->Add (_filters, 1, wxALL | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_GAP);
- filters->Add (_filters_button, 0, wxALL, DCPOMATIC_SIZER_GAP);
- sizer->Add (filters, wxGBPosition(r, 1), wxGBSpan(1, 2));
+ sizer->Add(_filters, wxGBPosition(r, 1), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
+ sizer->Add(_filters_button, wxGBPosition(r, 2), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
++r;
wxStaticText* video_frame_rate_label;
@@ -86,10 +84,10 @@ ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptr<Conte
video_frame_rate_label = add_label_to_sizer (sizer, this, _("Video frame rate that content was prepared for"), true, wxGBPosition(r, 0));
}
_video_frame_rate = new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float));
- sizer->Add (_video_frame_rate, wxGBPosition(r, 1));
+ sizer->Add(_video_frame_rate, wxGBPosition(r, 1), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
_set_video_frame_rate = new Button (this, _("Set"));
_set_video_frame_rate->Enable (false);
- sizer->Add (_set_video_frame_rate, wxGBPosition(r, 2));
+ sizer->Add(_set_video_frame_rate, wxGBPosition(r, 2), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
++r;
/// TRANSLATORS: next to this control is a language selector, so together they will read, for example