From b5dc213d7682efd62841b8c22e8596202e1dc9c3 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 20 May 2020 18:59:39 +0100 Subject: [PATCH] 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 --- common/widgets/infobar.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/widgets/infobar.cpp b/common/widgets/infobar.cpp index efc1daf715..5a3a017edc 100644 --- a/common/widgets/infobar.cpp +++ b/common/widgets/infobar.cpp @@ -72,9 +72,6 @@ void WX_INFOBAR::ShowMessage( const wxString& aMessage, int aFlags ) if( m_showTime > 0 ) m_showTimer->StartOnce( m_showTime ); - - Refresh(); - Update(); } @@ -201,7 +198,7 @@ void EDA_INFOBAR_PANEL::AddInfoBar( WX_INFOBAR* aInfoBar ) wxASSERT( aInfoBar ); aInfoBar->Reparent( this ); - m_mainSizer->Add( aInfoBar, 1, wxALIGN_TOP | wxEXPAND, 0 ); + m_mainSizer->Add( aInfoBar, 1, wxEXPAND, 0 ); m_mainSizer->Layout(); } @@ -211,7 +208,7 @@ void EDA_INFOBAR_PANEL::AddOtherItem( wxWindow* aOtherItem ) wxASSERT( aOtherItem ); 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->Layout();