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:
parent
bda5b0160d
commit
068758f8dd
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue