Browse Source

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.
6.0.7
jean-pierre charras 5 years ago
parent
commit
909ebe4b78
  1. 8
      eeschema/dialogs/dialog_symbol_properties.cpp

8
eeschema/dialogs/dialog_symbol_properties.cpp

@ -498,6 +498,14 @@ bool DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow()
Layout(); 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; return true;
} }

Loading…
Cancel
Save