Page layout editor: fix missing scrollbars in properties panel (GTK specific)

Fixes #4878
https://gitlab.com/kicad/code/kicad/issues/4878
This commit is contained in:
jean-pierre charras 2020-11-30 18:50:36 +01:00
parent b1270bc9ab
commit 1fd862a362
1 changed files with 7 additions and 1 deletions

View File

@ -293,7 +293,13 @@ void PROPERTIES_FRAME::CopyPrmsFromItemToPanel( WS_DATA_ITEM* aItem )
// The number of widgets was modified, so recalculate sizers
m_swItemProperties->Layout();
// send a size event to be sure scroolbars will be added/removed as needed
#ifdef __WXGTK__
// This call is mandatory on wxGTK to initialize the right virtual size and therefore
// scrollbars, but for some reason, create issues on Windows (incorrect disply
// until the frame is resized). Joys of multiplatform dev.
m_swItemProperties->->Fit();
#endif
// send a size event to be sure scrollbars will be added/removed as needed
m_swItemProperties->PostSizeEvent();
m_swItemProperties->Refresh();
}