1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Improve initial and minimum widths of resizable toolbars.

In particular, device toolbar previously could be made ridiculously small.
Also in the default configuration it takes a whole line, so we now use that space in its initial size.

Mixer Toolbar initial size was a little small.  Now it matches the Transport Toolbar width.
Meter Toolbar initial size was too small.
Transcription Toolbar was a little too small.  Better to start out slightly wider than previously.
This commit is contained in:
James Crook
2018-07-22 15:18:44 +01:00
parent d990890232
commit 9e1291b2b7
4 changed files with 7 additions and 5 deletions

View File

@@ -522,8 +522,8 @@ void ToolBar::ReCreateButtons()
// Initial size at least as big as minimum.
if( sz3.y < sz2.y )
sz3.y = sz2.y;
if( sz3.x < sz2.x )
sz3.x = GetInitialWidth();
//if( sz3.x < sz2.x )
sz3.x = GetInitialWidth();
//sz.SetWidth();
SetSize(sz3);
}