From 6da25337a91b1a63f51874b54f8f7f4f7608933c Mon Sep 17 00:00:00 2001
From: jean-pierre charras <jp.charras@wanadoo.fr>
Date: Mon, 8 Mar 2021 15:02:05 +0100
Subject: [PATCH] Pl_editor: Try to fix an issue on wxGTK in PROPERTIES_FRAME
 (scroll bars not always shown).

---
 pagelayout_editor/dialogs/properties_frame.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pagelayout_editor/dialogs/properties_frame.cpp b/pagelayout_editor/dialogs/properties_frame.cpp
index 71014c8921..2a43a0fa3e 100644
--- a/pagelayout_editor/dialogs/properties_frame.cpp
+++ b/pagelayout_editor/dialogs/properties_frame.cpp
@@ -70,6 +70,11 @@ PROPERTIES_FRAME::PROPERTIES_FRAME( PL_EDITOR_FRAME* aParent ) :
 
     m_buttonOK->SetDefault();
 
+    // ensure sizers are up to date
+    // (fix an issue on GTK but should not create issues on other platforms):
+    m_swItemProperties->Fit();
+    m_swGeneralOpts->Fit();
+
     m_stcText->Bind( wxEVT_STC_CHARADDED, &PROPERTIES_FRAME::onScintillaCharAdded, this );
 }