Pl_editor: minor fix to have the infobar right size the first time it is shown.

This commit is contained in:
jean-pierre charras 2020-05-21 10:57:05 +02:00
parent 2499a1d640
commit 5010a88069
1 changed files with 4 additions and 1 deletions

View File

@ -192,9 +192,12 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
GetCanvas()->GetView()->SetScale( GetZoomLevelCoeff() / GetScreen()->GetZoom() );
ActivateGalCanvas();
// Call Update() to fix all pane default sizes, especially the "InfoBar" pane before
// hidding it.
m_auimgr.Update();
// We don't want the infobar displayed right away
m_auimgr.GetPane( "InfoBar" ).Hide();
m_auimgr.Update();
// Add the exit key handler