mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 07:31:19 +01:00
Added Space-Saver meters. These are now the default.
Fixed ResetToolbars so that SpectralSelectionBar is not shown after a reset.
This commit is contained in:
@@ -273,13 +273,17 @@ void ToolBar::ReCreateButtons()
|
||||
// Recalculate the height to be a multiple of toolbarSingle
|
||||
const int tbs = toolbarSingle + toolbarGap;
|
||||
wxSize sz = GetSize();
|
||||
sz.y = ( ( ( sz.y + tbs ) / tbs ) * tbs ) - 1;
|
||||
sz.y = ( ( ( sz.y + tbs -1) / tbs ) * tbs ) - 1;
|
||||
|
||||
// Set the true AND minimum sizes and do final layout
|
||||
if(IsResizable())
|
||||
{
|
||||
sz.SetWidth(GetMinToolbarWidth());
|
||||
SetMinSize(sz);
|
||||
// JKC we're going to allow all resizable toolbars to be resized
|
||||
// to 1 unit high!
|
||||
wxSize sz2 = sz;
|
||||
sz2.y = tbs -1;
|
||||
SetMinSize(sz2);
|
||||
sz.SetWidth(GetInitialWidth());
|
||||
SetSize(sz);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user