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.
This commit is contained in:
jean-pierre charras 2021-02-10 12:48:58 +01:00
parent d738c91dd7
commit 909ebe4b78
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}