Remove incorrect sizer flags

This commit is contained in:
Thomas Goyne 2015-03-21 10:27:25 -08:00
parent ba9f5a78d4
commit 42429d4930
3 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@ AudioBox::AudioBox(wxWindow *parent, agi::Context *context)
auto link_btn = new ToggleBitmap(panel, context, "audio/opt/vertical_link", 16, "Audio", wxSize(20, -1));
link_btn->SetMaxSize(wxDefaultSize);
VertVolArea->Add(link_btn, 0, wxRIGHT | wxALIGN_CENTER | wxEXPAND, 0);
VertVolArea->Add(link_btn, 0, wxRIGHT | wxEXPAND, 0);
OPT_SUB("Audio/Link", &AudioBox::OnVerticalLink, this);
// Top sizer

View File

@ -129,9 +129,9 @@ DialogProgress::DialogProgress(wxWindow *parent, wxString const& title_text, wxS
title->SetFont(title_font);
wxSizer *sizer = new wxBoxSizer(wxVERTICAL);
sizer->Add(title, wxSizerFlags().Expand().Center());
sizer->Add(title, wxSizerFlags().Expand());
sizer->Add(gauge, wxSizerFlags(1).Expand().Border());
sizer->Add(text, wxSizerFlags().Expand().Center());
sizer->Add(text, wxSizerFlags().Expand());
sizer->Add(cancel_button, wxSizerFlags().Center().Border());
sizer->Add(log_output, wxSizerFlags().Expand().Border(wxALL & ~wxTOP));
sizer->Hide(log_output);

View File

@ -272,7 +272,7 @@ void SubsEditBox::MakeButton(const char *cmd_name) {
wxBitmapButton *btn = new wxBitmapButton(this, -1, command->Icon(16));
ToolTipManager::Bind(btn, command->StrHelp(), "Subtitle Edit Box", cmd_name);
middle_right_sizer->Add(btn, wxSizerFlags().Center().Expand());
middle_right_sizer->Add(btn, wxSizerFlags().Expand());
btn->Bind(wxEVT_BUTTON, std::bind(&SubsEditBox::CallCommand, this, cmd_name));
}
@ -298,7 +298,7 @@ wxRadioButton *SubsEditBox::MakeRadio(wxString const& text, bool start, wxString
wxRadioButton *ctrl = new wxRadioButton(this, -1, text, wxDefaultPosition, wxDefaultSize, start ? wxRB_GROUP : 0);
ctrl->SetToolTip(tooltip);
Bind(wxEVT_RADIOBUTTON, &SubsEditBox::OnFrameTimeRadio, this, ctrl->GetId());
middle_right_sizer->Add(ctrl, wxSizerFlags().Center().Expand().Border(wxRIGHT));
middle_right_sizer->Add(ctrl, wxSizerFlags().Expand().Border(wxRIGHT));
return ctrl;
}