1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-08 08:01:19 +02:00

Bug 1532 - Toolbars fail to arrange correctly when maximizing or restoring main window size

This commit is contained in:
James Crook 2017-05-14 16:08:02 +01:00
parent 6478895a39
commit 2f10c1ce25

View File

@ -2052,8 +2052,10 @@ void AudacityProject::UpdateLayout()
if (!mTrackPanel)
return;
mToolManager->LayoutToolBars();
// Layout first to get our new width,
// Then and only then we can arrange the toolbars.
Layout();
mToolManager->LayoutToolBars();
// Retrieve size of this projects window
wxSize mainsz = GetSize();
@ -2107,7 +2109,6 @@ void AudacityProject::RefreshAllTitles(bool bShowProjectNumbers )
void AudacityProject::OnIconize(wxIconizeEvent &event)
{
int VisibleProjectCount = 0;
//JKC: On Iconizing we get called twice. Don't know