1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-02 17:23:18 +02:00

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.
This commit is contained in:
James Crook 2021-05-19 13:16:42 +01:00
parent 8154dbed2e
commit 2b10309fb3

@ -1163,7 +1163,14 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
else{ else{
mPanel->Show( true ); mPanel->Show( true );
szrV->Show(szr1, 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(); ForceRecalc();