diff --git a/aegisub/src/dialog_fonts_collector.cpp b/aegisub/src/dialog_fonts_collector.cpp index ab48cff42..2d73c5fda 100644 --- a/aegisub/src/dialog_fonts_collector.cpp +++ b/aegisub/src/dialog_fonts_collector.cpp @@ -239,7 +239,7 @@ DialogFontsCollector::DialogFontsCollector(agi::Context *c) dest_browse_button = new wxButton(destination_box->GetStaticBox(), -1, _("&Browse...")); wxSizer *dest_browse_sizer = new wxBoxSizer(wxHORIZONTAL); - dest_browse_sizer->Add(dest_ctrl, wxSizerFlags(1).Border(wxRIGHT)); + dest_browse_sizer->Add(dest_ctrl, wxSizerFlags(1).Border(wxRIGHT).Align(wxALIGN_CENTER_VERTICAL)); dest_browse_sizer->Add(dest_browse_button, wxSizerFlags()); destination_box->Add(dest_label, wxSizerFlags().Border(wxBOTTOM)); diff --git a/aegisub/src/dialog_properties.cpp b/aegisub/src/dialog_properties.cpp index 991bcebf7..b6759e68a 100644 --- a/aegisub/src/dialog_properties.cpp +++ b/aegisub/src/dialog_properties.cpp @@ -88,9 +88,9 @@ DialogProperties::DialogProperties(agi::Context *c) else FromVideo->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogProperties::OnSetFromVideo, this); - ResSizer->Add(ResX,1,wxRIGHT,5); + ResSizer->Add(ResX,1,wxRIGHT | wxALIGN_CENTER_VERTICAL,5); ResSizer->Add(ResText,0,wxALIGN_CENTER | wxRIGHT,5); - ResSizer->Add(ResY,1,wxRIGHT,5); + ResSizer->Add(ResY,1,wxRIGHT | wxALIGN_CENTER_VERTICAL,5); ResSizer->Add(FromVideo,1,0,0); // Options diff --git a/aegisub/src/dialog_resample.cpp b/aegisub/src/dialog_resample.cpp index 9ee4878ae..00b1abad4 100644 --- a/aegisub/src/dialog_resample.cpp +++ b/aegisub/src/dialog_resample.cpp @@ -100,9 +100,9 @@ DialogResample::DialogResample(agi::Context *c, ResampleSettings &settings) margin_box->Add(margin_sizer, wxSizerFlags(1).Expand().Border(wxBOTTOM)); wxSizer *res_sizer = new wxBoxSizer(wxHORIZONTAL); - res_sizer->Add(res_x, wxSizerFlags(1).Border(wxRIGHT)); + res_sizer->Add(res_x, wxSizerFlags(1).Border(wxRIGHT).Align(wxALIGN_CENTER_VERTICAL)); res_sizer->Add(new wxStaticText(this, -1, _("x")), wxSizerFlags().Center().Border(wxRIGHT)); - res_sizer->Add(res_y, wxSizerFlags(1).Border(wxRIGHT)); + res_sizer->Add(res_y, wxSizerFlags(1).Border(wxRIGHT).Align(wxALIGN_CENTER_VERTICAL)); res_sizer->Add(from_video, wxSizerFlags(1)); wxSizer *res_box = new wxStaticBoxSizer(wxVERTICAL, this, _("Resolution")); diff --git a/aegisub/src/dialog_video_details.cpp b/aegisub/src/dialog_video_details.cpp index f0bf4b190..d0a44a6f1 100644 --- a/aegisub/src/dialog_video_details.cpp +++ b/aegisub/src/dialog_video_details.cpp @@ -50,7 +50,7 @@ #include "video_provider_manager.h" static void make_field(wxWindow *parent, wxSizer *sizer, wxString const& name, wxString const& value) { - sizer->Add(new wxStaticText(parent, -1, name), 0, wxALIGN_CENTRE_VERTICAL | wxEXPAND); + sizer->Add(new wxStaticText(parent, -1, name), 0, wxALIGN_CENTRE_VERTICAL); sizer->Add(new wxTextCtrl(parent, -1, value, wxDefaultPosition, wxSize(300,-1), wxTE_READONLY), 0, wxALIGN_CENTRE_VERTICAL | wxEXPAND); } diff --git a/aegisub/src/preferences_base.cpp b/aegisub/src/preferences_base.cpp index c7e9b4bf5..5cc66cc69 100644 --- a/aegisub/src/preferences_base.cpp +++ b/aegisub/src/preferences_base.cpp @@ -122,7 +122,7 @@ OptionPage::OptionPage(wxTreebook *book, Preferences *parent, wxString name, int template void OptionPage::Add(wxSizer *sizer, wxString const& label, T *control) { - sizer->Add(new wxStaticText(this, -1, label), 1, wxEXPAND | wxALIGN_CENTRE_VERTICAL); + sizer->Add(new wxStaticText(this, -1, label), 1, wxALIGN_CENTRE_VERTICAL); sizer->Add(control, wxSizerFlags().Expand()); }