From 0cecbd1ea61cc342c3910bb844b4414b83dc0727 Mon Sep 17 00:00:00 2001 From: ousnius Date: Sat, 17 Dec 2016 00:07:13 +0100 Subject: [PATCH] Increase size of Load Preset dialog in OS --- res/xrc/Slider.xrc | 12 ++++++------ src/program/OutfitStudio.cpp | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/res/xrc/Slider.xrc b/res/xrc/Slider.xrc index d771189f..7c6acbdf 100644 --- a/res/xrc/Slider.xrc +++ b/res/xrc/Slider.xrc @@ -1,8 +1,8 @@ - - 327,132 + + 325,175 Select a slider preset 1 @@ -27,12 +27,12 @@ - wxEXPAND + wxALL|wxEXPAND 5 wxHORIZONTAL - + wxALL 5 @@ -41,7 +41,7 @@ - + wxALL 5 @@ -53,7 +53,7 @@ - wxEXPAND|wxALL + wxALL|wxEXPAND 5 diff --git a/src/program/OutfitStudio.cpp b/src/program/OutfitStudio.cpp index 3de09d78..60dc3ccb 100644 --- a/src/program/OutfitStudio.cpp +++ b/src/program/OutfitStudio.cpp @@ -3741,6 +3741,10 @@ void OutfitStudio::OnLoadPreset(wxCommandEvent& WXUNUSED(event)) { presetChoice->SetSelection(0); + dlg.SetSize(wxSize(325, 175)); + dlg.SetSizeHints(wxSize(325, 175), wxSize(-1, 175)); + dlg.CenterOnParent(); + if (dlg.ShowModal() != wxID_OK) return;