X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed4b0fdca60e017afe72c55940799ce0fed925f0..9e1fc0e42822fdf1159582f1b73cde0c7d15bc92:/src/generic/buttonbar.cpp?ds=sidebyside diff --git a/src/generic/buttonbar.cpp b/src/generic/buttonbar.cpp index 98b1b160a7..343e7e585a 100644 --- a/src/generic/buttonbar.cpp +++ b/src/generic/buttonbar.cpp @@ -36,11 +36,10 @@ #include "wx/log.h" #include "wx/frame.h" #include "wx/dcclient.h" + #include "wx/settings.h" + #include "wx/image.h" #endif -#include "wx/image.h" -#include "wx/settings.h" - // ---------------------------------------------------------------------------- // wxButtonToolBarTool: our implementation of wxToolBarToolBase // ---------------------------------------------------------------------------- @@ -352,7 +351,7 @@ bool wxButtonToolBar::Realize() m_needsLayout = true; DoLayout(); - SetBestSize(wxSize(m_maxWidth, m_maxHeight)); + SetInitialSize(wxSize(m_maxWidth, m_maxHeight)); return true; }