mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 07:31:19 +01:00
bug 11 followup: let DeviceToolBar be resize smaller than intial width
This commit is contained in:
@@ -265,11 +265,16 @@ void ToolBar::ReCreateButtons()
|
||||
|
||||
// Set the true AND minimum sizes and do final layout
|
||||
if(IsResizable())
|
||||
{// EM: allows narrow Meter Toolbar
|
||||
sz.SetWidth(GetInitialWidth());
|
||||
{
|
||||
sz.SetWidth(GetMinToolbarWidth());
|
||||
SetMinSize(sz);
|
||||
sz.SetWidth(GetInitialWidth());
|
||||
SetSize(sz);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetInitialSize(sz);
|
||||
}
|
||||
SetInitialSize(sz);
|
||||
Layout();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user