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-15 09:13:33 -06:00
parent fd0f24e5ff
commit 3ecc5717ad

View File

@ -95,7 +95,15 @@ ToolFrame::ToolFrame
// Transfer the bar to the ferry
bar->Reparent(this);
SetMinSize(bar->GetDockedSize());
// Bug 2120 (comment 6 residual): No need to set a minimum size
// if the toolbar is not resizable. On GTK, setting a minimum
// size will prevent the frame from shrinking if the toolbar gets
// reconfigured and needs to resize smaller.
if (bar->IsResizable())
{
SetMinSize(bar->GetDockedSize());
}
{
// We use a sizer to maintain proper spacing