forked from mia/Aegisub
Remove the explicit height from the preferences dialog
The height was too short to fit the contents in some cases, and wasn't even used on Windows. Patch by cantabile. Closes #1488. Originally committed to SVN as r6773.
This commit is contained in:
parent
57e06a6cad
commit
0239ab6688
1 changed files with 1 additions and 3 deletions
|
@ -670,7 +670,7 @@ static void PageChanged(wxBookCtrlEvent& evt) {
|
|||
OPT_SET("Tool/Preferences/Page")->SetInt(evt.GetSelection());
|
||||
}
|
||||
|
||||
Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"), wxDefaultPosition, wxSize(-1, 500)) {
|
||||
Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"), wxDefaultPosition, wxSize(-1, -1), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) {
|
||||
SetIcon(GETICON(options_button_16));
|
||||
|
||||
book = new wxTreebook(this, -1, wxDefaultPosition, wxDefaultSize);
|
||||
|
@ -706,8 +706,6 @@ Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"
|
|||
mainSizer->Add(buttonSizer, wxSizerFlags(0).Expand().Border(wxALL & ~wxTOP));
|
||||
|
||||
SetSizerAndFit(mainSizer);
|
||||
SetMinSize(wxSize(-1, 500));
|
||||
SetMaxSize(wxSize(-1, 500));
|
||||
CenterOnParent();
|
||||
|
||||
applyButton->Enable(false);
|
||||
|
|
Loading…
Reference in a new issue