7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-02 00:26:45 +00:00

Improve default sizes of right panels

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19965
This commit is contained in:
Jon Evans 2025-03-04 21:54:31 -05:00
parent 32b5cf6221
commit 259e249aed
2 changed files with 8 additions and 14 deletions

View File

@ -323,27 +323,19 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_auimgr.AddPane( m_appearancePanel, EDA_PANE().Name( wxS( "LayersManager" ) )
.Right().Layer( 4 )
.Caption( _( "Appearance" ) ).PaneBorder( false )
.MinSize( FromDIP( 180 ), -1 )
.BestSize( FromDIP( 180 ), -1 )
.FloatingSize( FromDIP( 180 ), -1 )
.MinSize( m_appearancePanel->GetMinSize().x, -1 )
.BestSize( m_appearancePanel->GetBestSize().x, -1 )
.FloatingSize( m_appearancePanel->GetBestSize() )
.CloseButton( false ) );
m_auimgr.AddPane( m_selectionFilterPanel, EDA_PANE().Name( wxS( "SelectionFilter" ) )
.Right().Layer( 4 ).Position( 2 )
.Caption( _( "Selection Filter" ) ).PaneBorder( false )
.MinSize( FromDIP( 180 ), -1 )
.BestSize( FromDIP( 180 ), -1 )
.FloatingSize( FromDIP( 180 ), -1 )
.MinSize( m_selectionFilterPanel->GetMinSize().x, m_selectionFilterPanel->GetMinSize().y )
.BestSize( m_selectionFilterPanel->GetBestSize().x, m_selectionFilterPanel->GetMinSize().y )
.FloatingSize( m_selectionFilterPanel->GetBestSize() )
.CloseButton( false ) );
m_auimgr.AddPane( m_propertiesPanel, EDA_PANE().Name( PropertiesPaneName() )
.Left().Layer( 5 )
.Caption( _( "Properties" ) ).PaneBorder( false )
.MinSize( FromDIP( wxSize( 240, 60 ) ) )
.BestSize( FromDIP( wxSize( 300, 200 ) ) )
.FloatingSize( wxSize( 300, 200 ) )
.CloseButton( true ) );
// Center
m_auimgr.AddPane( GetCanvas(), EDA_PANE().Canvas().Name( wxS( "DrawFrame" ) )
.Center() );

View File

@ -64,6 +64,8 @@ PANEL_SELECTION_FILTER::PANEL_SELECTION_FILTER( wxWindow* aParent ) :
m_cbOtherItems->Bind( wxEVT_RIGHT_DOWN, &PANEL_SELECTION_FILTER::onRightClick, this );
m_frame->Bind( EDA_LANG_CHANGED, &PANEL_SELECTION_FILTER::OnLanguageChanged, this );
SetMinSize( GetBestSize() );
}