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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user