mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 19:29:17 +00:00
Invalidate control sizes in ACTION_TOOLBAR.
This commit is contained in:
parent
492ce600a4
commit
85f5b8849e
@ -359,6 +359,7 @@ void ACTION_TOOLBAR::UpdateControlWidth( int aID )
|
||||
wxASSERT_MSG( control, wxString::Format( "No control located in toolbar item with ID %d", aID ) );
|
||||
|
||||
// Update the size the item has stored using the best size of the control
|
||||
control->InvalidateBestSize();
|
||||
wxSize bestSize = control->GetBestSize();
|
||||
item->SetMinSize( bestSize );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user