mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 04:32:00 +01:00
wxWidgets docs recommend: don't SetSizeHints on non-top-level windows
This commit is contained in:
@@ -671,7 +671,8 @@ void PluginRegistrationDialog::PopulateOrExchange(ShuttleGui &S)
|
||||
|
||||
// Keep dialog from getting too wide
|
||||
int w = r.GetWidth() - (GetClientSize().GetWidth() - mEffects->GetSize().GetWidth());
|
||||
mEffects->SetSizeHints(wxSize(wxMin(maxW, w), 200), wxSize(w, -1));
|
||||
mEffects->SetMinSize({ std::min(maxW, w), 200 });
|
||||
mEffects->SetMaxSize({ w, -1 });
|
||||
|
||||
RegenerateEffectsList(ID_ShowAll);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user