mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-25 14:11:28 +01:00
Bug 2393 - Device toolbar cannot be resized smaller after a toolbars reset
This commit is contained in:
@@ -568,7 +568,7 @@ void ToolBar::ReCreateButtons()
|
|||||||
// JKC we're going to allow all resizable toolbars to be resized
|
// JKC we're going to allow all resizable toolbars to be resized
|
||||||
// to 1 unit high, typically 27 pixels.
|
// to 1 unit high, typically 27 pixels.
|
||||||
wxSize sz2 = sz;
|
wxSize sz2 = sz;
|
||||||
sz2.SetWidth(wxMax( sz2.GetX(), GetMinToolbarWidth()));
|
sz2.SetWidth(GetMinToolbarWidth());
|
||||||
sz2.y = tbs -1;
|
sz2.y = tbs -1;
|
||||||
SetMinSize(sz2);
|
SetMinSize(sz2);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user