summaryrefslogtreecommitdiff
path: root/src/wx/timecode.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-17 20:56:34 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-17 20:56:34 +0100
commit11343af8c785df572a092765a1d7e7ac40364295 (patch)
tree6bbeb010de999c0ebe1a5f798c12d6c1cf55b3df /src/wx/timecode.cc
parent921e681d6e4bde33c6652905dcebf4e7259cf14e (diff)
Fix alignment of timecode controls (observed on Linux).
Diffstat (limited to 'src/wx/timecode.cc')
-rw-r--r--src/wx/timecode.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/timecode.cc b/src/wx/timecode.cc
index d4a8a5074..6538bf986 100644
--- a/src/wx/timecode.cc
+++ b/src/wx/timecode.cc
@@ -64,7 +64,7 @@ TimecodeBase::TimecodeBase (wxWindow* parent, bool set_button)
for (auto i = _controls.begin(); i != _controls.end(); ++i) {
(*i)->SetMaxLength(2);
- editable_sizer->Add(*i);
+ editable_sizer->Add(*i, 1, wxALIGN_CENTER_VERTICAL);
if (std::next(i) != _controls.end()) {
add_label_to_sizer(editable_sizer, _editable, char_to_wx(":"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
}
@@ -72,10 +72,10 @@ TimecodeBase::TimecodeBase (wxWindow* parent, bool set_button)
if (set_button) {
_set_button = new Button (_editable, _("Set"), wxDefaultPosition, small_button_size(parent, _("Set")));
- editable_sizer->Add (_set_button, 0, wxLEFT | wxRIGHT, 8);
+ editable_sizer->Add(_set_button, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, 8);
}
_editable->SetSizerAndFit (editable_sizer);
- _sizer->Add (_editable);
+ _sizer->Add(_editable, 1, wxALIGN_CENTER_VERTICAL);
_fixed = add_label_to_sizer(_sizer, this, char_to_wx("42"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);