1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Bug 2120 - Spectral Selection Toolbar can be truncated when undocked

This commit is contained in:
Leland Lucius 2021-02-16 02:17:50 -06:00
parent 91b3389434
commit 37b36f5826

View File

@ -343,7 +343,12 @@ void SpectralSelectionBar::OnChoice(wxCommandEvent &)
mHighCtrl->Show(!mbCenterAndWidth);
ValuesToControls();
GetSizer()->Layout(); // Required so that the layout does not mess up on Windows when changing the format.
wxSize sz = GetMinSize();
sz.SetWidth(wxDefaultCoord);
SetMinSize(sz);
Layout();
Fit();
Updated();
}