mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +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:
parent
8154dbed2e
commit
2b10309fb3
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user