1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-15 08:07:41 +02:00

bug 11 follow up: Fix initial width setting on windows (was working with mac/linux)

This commit is contained in:
mchinen 2011-01-23 13:32:49 +00:00
parent 2672b3a019
commit f4f4bccbbb

@ -264,12 +264,12 @@ void ToolBar::ReCreateButtons()
sz.y = ( ( ( sz.y + tbs ) / tbs ) * tbs ) - 1; sz.y = ( ( ( sz.y + tbs ) / tbs ) * tbs ) - 1;
// Set the true AND minimum sizes and do final layout // Set the true AND minimum sizes and do final layout
SetInitialSize(sz);
if(IsResizable()) if(IsResizable())
{// EM: allows narrow Meter Toolbar {// EM: allows narrow Meter Toolbar
sz.SetWidth(GetInitialWidth()); sz.SetWidth(GetInitialWidth());
SetMinSize(sz); SetMinSize(sz);
} }
SetInitialSize(sz);
Layout(); Layout();
} }