Invalidate control sizes in ACTION_TOOLBAR.

This commit is contained in:
Alex Shvartzkop 2024-05-23 00:40:43 +03:00
parent 492ce600a4
commit 85f5b8849e
1 changed files with 1 additions and 0 deletions

View File

@ -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 );