From 909ebe4b7882c71e0dbc71e2b047d5ba20c09b03 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 10 Feb 2021 12:48:58 +0100 Subject: [PATCH] Try to fix an annoying issue in DIALOG_SYMBOL_PROPERTIES on wxGTK. In some cases selecting a field to change its value make this value invisible. It happens until the dialog is resized, so I am guessing there is a problem when initializing sizers settings. --- eeschema/dialogs/dialog_symbol_properties.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eeschema/dialogs/dialog_symbol_properties.cpp b/eeschema/dialogs/dialog_symbol_properties.cpp index e25e1f511b..fdf0038c08 100644 --- a/eeschema/dialogs/dialog_symbol_properties.cpp +++ b/eeschema/dialogs/dialog_symbol_properties.cpp @@ -498,6 +498,14 @@ bool DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow() Layout(); + // Workaround to fix an annoying issue on wxGTK: in some cases selecting a field + // to change its value make this value invisible. It happens until the dialog is resized. + // So I am guessing there is a problem when initializing sizers settings + // Do not create issues on other OS + wxSafeYield(); // slice of time to handle events generated when creating the + // dialog, especially size events + m_fieldsGrid->Layout(); // Force recalculating all sizers in m_fieldsGrid + return true; }