Fix infobar sizer issue for wx 3.1

On wx 3.1, the sizer was iving too much space to the infobar.

Fixes https://gitlab.com/kicad/code/kicad/issues/4501
This commit is contained in:
Ian McInerney 2020-05-20 18:59:39 +01:00
parent 480588866c
commit b5dc213d76
1 changed files with 2 additions and 5 deletions

View File

@ -72,9 +72,6 @@ void WX_INFOBAR::ShowMessage( const wxString& aMessage, int aFlags )
if( m_showTime > 0 ) if( m_showTime > 0 )
m_showTimer->StartOnce( m_showTime ); m_showTimer->StartOnce( m_showTime );
Refresh();
Update();
} }
@ -201,7 +198,7 @@ void EDA_INFOBAR_PANEL::AddInfoBar( WX_INFOBAR* aInfoBar )
wxASSERT( aInfoBar ); wxASSERT( aInfoBar );
aInfoBar->Reparent( this ); aInfoBar->Reparent( this );
m_mainSizer->Add( aInfoBar, 1, wxALIGN_TOP | wxEXPAND, 0 ); m_mainSizer->Add( aInfoBar, 1, wxEXPAND, 0 );
m_mainSizer->Layout(); m_mainSizer->Layout();
} }
@ -211,7 +208,7 @@ void EDA_INFOBAR_PANEL::AddOtherItem( wxWindow* aOtherItem )
wxASSERT( aOtherItem ); wxASSERT( aOtherItem );
aOtherItem->Reparent( this ); aOtherItem->Reparent( this );
m_mainSizer->Add( aOtherItem, 1, wxALIGN_BOTTOM | wxEXPAND, 0 ); m_mainSizer->Add( aOtherItem, 1, wxEXPAND, 0 );
m_mainSizer->AddGrowableRow( 1, 1 ); m_mainSizer->AddGrowableRow( 1, 1 );
m_mainSizer->Layout(); m_mainSizer->Layout();