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:
parent
b1270bc9ab
commit
1fd862a362
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue