From 8b6fda28906afe39f3b1083709d2973c7093885b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 1 Feb 2023 11:29:55 +0100 Subject: [PATCH] PANEL_COMMON_SETTINGS_BASE: Reduce the minimal width of the panel. Other languages than English can have much bigger sentences, thus creating a very large panel. --- common/dialogs/panel_common_settings_base.cpp | 5 ++--- common/dialogs/panel_common_settings_base.fbp | 4 ++-- common/dialogs/panel_common_settings_base.h | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/common/dialogs/panel_common_settings_base.cpp b/common/dialogs/panel_common_settings_base.cpp index ca998a8615..c1b77af7a0 100644 --- a/common/dialogs/panel_common_settings_base.cpp +++ b/common/dialogs/panel_common_settings_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3) +// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -407,12 +407,11 @@ PANEL_COMMON_SETTINGS_BASE::PANEL_COMMON_SETTINGS_BASE( wxWindow* parent, wxWind rightSizer->Add( bProjectBackupSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 ); - bPanelSizer->Add( rightSizer, 1, wxEXPAND|wxLEFT, 5 ); + bPanelSizer->Add( rightSizer, 0, wxEXPAND|wxLEFT, 5 ); this->SetSizer( bPanelSizer ); this->Layout(); - bPanelSizer->Fit( this ); // Connect Events m_textEditorBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_COMMON_SETTINGS_BASE::OnTextEditorClick ), NULL, this ); diff --git a/common/dialogs/panel_common_settings_base.fbp b/common/dialogs/panel_common_settings_base.fbp index a578fa38d3..b4954a6d09 100644 --- a/common/dialogs/panel_common_settings_base.fbp +++ b/common/dialogs/panel_common_settings_base.fbp @@ -45,7 +45,7 @@ PANEL_COMMON_SETTINGS_BASE - -1,-1 + 790,592 RESETTABLE_PANEL; widgets/resettable_panel.h; Not forward_declare 0 @@ -2294,7 +2294,7 @@ 5 wxEXPAND|wxLEFT - 1 + 0 rightSizer diff --git a/common/dialogs/panel_common_settings_base.h b/common/dialogs/panel_common_settings_base.h index 8cf7fe4c8a..98be924569 100644 --- a/common/dialogs/panel_common_settings_base.h +++ b/common/dialogs/panel_common_settings_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3) +// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -113,7 +113,7 @@ class PANEL_COMMON_SETTINGS_BASE : public RESETTABLE_PANEL public: - PANEL_COMMON_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + PANEL_COMMON_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 790,592 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); ~PANEL_COMMON_SETTINGS_BASE();