Pl_editor: minor fix to have the infobar right size the first time it is shown.
This commit is contained in:
parent
2499a1d640
commit
5010a88069
|
@ -192,9 +192,12 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
GetCanvas()->GetView()->SetScale( GetZoomLevelCoeff() / GetScreen()->GetZoom() );
|
GetCanvas()->GetView()->SetScale( GetZoomLevelCoeff() / GetScreen()->GetZoom() );
|
||||||
ActivateGalCanvas();
|
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
|
// We don't want the infobar displayed right away
|
||||||
m_auimgr.GetPane( "InfoBar" ).Hide();
|
m_auimgr.GetPane( "InfoBar" ).Hide();
|
||||||
|
|
||||||
m_auimgr.Update();
|
m_auimgr.Update();
|
||||||
|
|
||||||
// Add the exit key handler
|
// Add the exit key handler
|
||||||
|
|
Loading…
Reference in New Issue