Browse Source

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

pull/16/head
jean-pierre charras 5 years ago
parent
commit
5010a88069
  1. 5
      pagelayout_editor/pl_editor_frame.cpp

5
pagelayout_editor/pl_editor_frame.cpp

@ -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

Loading…
Cancel
Save