Label vertical alignment fixes.
authorCarl Hetherington <cth@carlh.net>
Thu, 1 Oct 2020 23:11:29 +0000 (01:11 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 13 Oct 2020 16:51:11 +0000 (18:51 +0200)
src/wx/video_waveform_dialog.cc

index 510d373c61364d3b7b2f8b19151dcbb6faa4ed6e..8becbd5fbca485aa855688dd39ada0ae475bb6ea 100644 (file)
@@ -67,11 +67,11 @@ VideoWaveformDialog::VideoWaveformDialog (wxWindow* parent, weak_ptr<const Film>
        overall_sizer->Add (controls, 0, wxALL | wxEXPAND, DCPOMATIC_SIZER_X_GAP);
 
        wxBoxSizer* position = new wxBoxSizer (wxHORIZONTAL);
-       add_label_to_sizer (position, this, _("Image X position"), true);
+       add_label_to_sizer (position, this, _("Image X position"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL);
        _x_position = new StaticText (this, "");
        _x_position->SetMinSize (wxSize (64, -1));
        position->Add (_x_position, 0, wxALL, DCPOMATIC_SIZER_X_GAP);
-       add_label_to_sizer (position, this, _("component value"), true);
+       add_label_to_sizer (position, this, _("component value"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL);
        _value = new StaticText (this, "");
        _value->SetMinSize (wxSize (64, -1));
        position->Add (_value, 0, wxALL, DCPOMATIC_SIZER_X_GAP);