From b4bb36f0172f229a807eb4ffda956c4b5b33f23b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 19 Aug 2018 12:04:24 +0100 Subject: [PATCH] Define minHeight so 3D model grid doesn't grow to include all rows. Fixes: lp:1787269 * https://bugs.launchpad.net/kicad/+bug/1787269 --- pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.cpp | 2 ++ pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.fbp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.cpp b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.cpp index f34a0beef9..11f8129100 100644 --- a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.cpp +++ b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.cpp @@ -420,6 +420,8 @@ DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::DIALOG_FOOTPRINT_BOARD_EDITOR_BASE( wxWindow // Cell Defaults m_modelsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); + m_modelsGrid->SetMinSize( wxSize( -1,86 ) ); + sbSizer3->Add( m_modelsGrid, 1, wxEXPAND|wxRIGHT, 5 ); wxBoxSizer* bSizer3DButtons; diff --git a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.fbp b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.fbp index 2aa0cef08d..5b9d6069dc 100644 --- a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.fbp +++ b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor_base.fbp @@ -4600,7 +4600,7 @@ 0 - + -1,86 1 m_modelsGrid 1