pl_editor, properties panel: ensure scroll-bars are show when needed

After selecting an item one need to generate a size event after
the widgets shown in properties panel are modified to create (or remove)
scroll-bars according to the size of the panel and the displayed items.
This commit is contained in:
jean-pierre charras 2020-11-05 18:37:15 +01:00
parent bda5b0160d
commit 068758f8dd
1 changed files with 3 additions and 1 deletions

View File

@ -291,8 +291,10 @@ void PROPERTIES_FRAME::CopyPrmsFromItemToPanel( WS_DATA_ITEM* aItem )
msg.Printf( wxT("%.3f"), aItem->m_IncrementVector.y );
m_textCtrlStepY->SetValue( msg );
// The number of widgets was modified
// 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
m_swItemProperties->PostSizeEvent();
m_swItemProperties->Refresh();
}