Improve 259e249a for macOS

This commit is contained in:
Jon Evans 2025-03-04 22:56:24 -05:00
parent 259e249aed
commit a6ef2d97fb

View File

@ -324,15 +324,20 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
.Right().Layer( 4 ) .Right().Layer( 4 )
.Caption( _( "Appearance" ) ).PaneBorder( false ) .Caption( _( "Appearance" ) ).PaneBorder( false )
.MinSize( m_appearancePanel->GetMinSize().x, -1 ) .MinSize( m_appearancePanel->GetMinSize().x, -1 )
#ifdef __WXMAC__
// Best size for this pane is calculated larger than necessary on wxMac
.BestSize( m_appearancePanel->GetMinSize().x, -1 )
#else
.BestSize( m_appearancePanel->GetBestSize().x, -1 ) .BestSize( m_appearancePanel->GetBestSize().x, -1 )
#endif
.FloatingSize( m_appearancePanel->GetBestSize() ) .FloatingSize( m_appearancePanel->GetBestSize() )
.CloseButton( false ) ); .CloseButton( false ) );
m_auimgr.AddPane( m_selectionFilterPanel, EDA_PANE().Name( wxS( "SelectionFilter" ) ) m_auimgr.AddPane( m_selectionFilterPanel, EDA_PANE().Name( wxS( "SelectionFilter" ) )
.Right().Layer( 4 ).Position( 2 ) .Right().Layer( 4 ).Position( 2 )
.Caption( _( "Selection Filter" ) ).PaneBorder( false ) .Caption( _( "Selection Filter" ) ).PaneBorder( false )
.MinSize( m_selectionFilterPanel->GetMinSize().x, m_selectionFilterPanel->GetMinSize().y ) .MinSize( m_selectionFilterPanel->GetMinSize().x, -1 )
.BestSize( m_selectionFilterPanel->GetBestSize().x, m_selectionFilterPanel->GetMinSize().y ) .BestSize( m_selectionFilterPanel->GetBestSize().x, -1 )
.FloatingSize( m_selectionFilterPanel->GetBestSize() ) .FloatingSize( m_selectionFilterPanel->GetBestSize() )
.CloseButton( false ) ); .CloseButton( false ) );