1
0
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:
james.k.crook@gmail.com
2014-11-09 15:47:09 +00:00
parent 0880d1777a
commit 7ee3c47441
9 changed files with 126 additions and 22 deletions

View File

@@ -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);
}