From 3ecc5717addc13e321c27a4cecf80246a81cad3b Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Mon, 15 Feb 2021 09:13:33 -0600 Subject: [PATCH] Bug 2120 - Spectral Selection Toolbar can be truncated when undocked --- src/toolbars/ToolManager.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/toolbars/ToolManager.cpp b/src/toolbars/ToolManager.cpp index b694cc076..eabef6fc7 100644 --- a/src/toolbars/ToolManager.cpp +++ b/src/toolbars/ToolManager.cpp @@ -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