1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +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

View File

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