From 0fd0e84162153ba725fe387550e736128e975ad2 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 21 May 2018 12:37:50 +0100 Subject: [PATCH] Keep OK/Cancel buttons at bottom of Track/Via Properties. Fixes: lp:1772260 * https://bugs.launchpad.net/kicad/+bug/1772260 --- pcbnew/dialogs/dialog_track_via_properties.cpp | 2 -- pcbnew/dialogs/dialog_track_via_properties_base.cpp | 3 +++ pcbnew/dialogs/dialog_track_via_properties_base.fbp | 10 ++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/dialog_track_via_properties.cpp b/pcbnew/dialogs/dialog_track_via_properties.cpp index 44d614a74a..6bb032c339 100644 --- a/pcbnew/dialogs/dialog_track_via_properties.cpp +++ b/pcbnew/dialogs/dialog_track_via_properties.cpp @@ -321,8 +321,6 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen m_StdButtonsOK->SetDefault(); - Layout(); - // Pressing ENTER when any of the text input fields is active applies changes Connect( wxEVT_TEXT_ENTER, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES::onOkClick ), NULL, this ); diff --git a/pcbnew/dialogs/dialog_track_via_properties_base.cpp b/pcbnew/dialogs/dialog_track_via_properties_base.cpp index 97bd52f32f..0f6c954014 100644 --- a/pcbnew/dialogs/dialog_track_via_properties_base.cpp +++ b/pcbnew/dialogs/dialog_track_via_properties_base.cpp @@ -251,6 +251,9 @@ DIALOG_TRACK_VIA_PROPERTIES_BASE::DIALOG_TRACK_VIA_PROPERTIES_BASE( wxWindow* pa m_MainSizer->Add( m_sbViaSizer, 0, wxALL|wxEXPAND, 5 ); + + m_MainSizer->Add( 0, 0, 1, wxEXPAND, 5 ); + m_StdButtons = new wxStdDialogButtonSizer(); m_StdButtonsOK = new wxButton( this, wxID_OK ); m_StdButtons->AddButton( m_StdButtonsOK ); diff --git a/pcbnew/dialogs/dialog_track_via_properties_base.fbp b/pcbnew/dialogs/dialog_track_via_properties_base.fbp index 5b2f81e646..e83eb302c8 100644 --- a/pcbnew/dialogs/dialog_track_via_properties_base.fbp +++ b/pcbnew/dialogs/dialog_track_via_properties_base.fbp @@ -3992,6 +3992,16 @@ + + 5 + wxEXPAND + 1 + + 0 + protected + 0 + + 5 wxALL|wxEXPAND