From 20f6a834667558cf4089611d47c1d37e9744555b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 26 Jul 2022 16:51:30 +0100 Subject: [PATCH] Don't leave wxWidgets to calc the height of the hierarchy navigator. It just makes a mess of things. Fixes https://gitlab.com/kicad/code/kicad/issues/10501 --- eeschema/sch_edit_frame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index 8791dbf0bb..ff8276c79d 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -175,9 +175,9 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : .TopDockable( false ) .BottomDockable( false ) .CloseButton( true ) - .MinSize( 120, -1 ) - .BestSize( 200, -1 ) - .FloatingSize( 200, 80 ) + .MinSize( 120, 60 ) + .BestSize( 200, 200 ) + .FloatingSize( 200, 200 ) .Show( false ) ); m_auimgr.AddPane( m_optionsToolBar, EDA_PANE().VToolbar().Name( "OptToolbar" ) .Left().Layer( 2 ) ); @@ -232,7 +232,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : // Note: DO NOT call m_auimgr.Update() anywhere after this; it will nuke the size // back to minimum. - hierarchy_pane.MinSize( 120, -1 ); + hierarchy_pane.MinSize( 120, 60 ); } else {