From 2b10309fb3d38294148bff4f1fd6b96339e5fbd8 Mon Sep 17 00:00:00 2001 From: James Crook Date: Wed, 19 May 2021 13:16:42 +0100 Subject: [PATCH] Bug 2784 - Enh: Filter Curve EQ does not remember window size Per comment 1 in that Bugzilla bug report, this change makes the default/initial/minimum size larger. --- src/effects/Equalization.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/effects/Equalization.cpp b/src/effects/Equalization.cpp index 29cef142d..d7158742c 100644 --- a/src/effects/Equalization.cpp +++ b/src/effects/Equalization.cpp @@ -1163,7 +1163,14 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S) else{ mPanel->Show( true ); szrV->Show(szr1, true); - mUIParent->SetMinSize(mUIParent->GetBestSize()); + // This sizing calculation is hacky. + // Rather than set the true minimum size we set a size we would + // like to have. + // This makes the default size of the dialog good, but has the + // downside that the user can't adjust the dialog smaller. + wxSize sz = szrV->GetMinSize(); + sz += wxSize( 400, 0); + szrV->SetMinSize(sz); } ForceRecalc();