X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..4d01e350fe2d8cb15c068d579c4022345f3ff0c0:/src/mac/classic/toolbar.cpp diff --git a/src/mac/classic/toolbar.cpp b/src/mac/classic/toolbar.cpp index d8bdac1326..1b4b9733d0 100644 --- a/src/mac/classic/toolbar.cpp +++ b/src/mac/classic/toolbar.cpp @@ -377,6 +377,7 @@ bool wxToolBar::Realize() } SetSize(maxWidth, maxHeight); + InvalidateBestSize(); return TRUE; } @@ -494,6 +495,7 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), { // nothing special to do here - we relayout in Realize() later tool->Attach(this); + InvalidateBestSize(); return TRUE; } @@ -540,6 +542,7 @@ bool wxToolBar::DoDeleteTool(size_t WXUNUSED(pos), wxToolBarToolBase *tool) tool2->SetPosition( pt ) ; } + InvalidateBestSize(); return TRUE ; }