]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/buttonbar.cpp
moved some wxMimeTypeCommands methods into .cpp file from header, this generally...
[wxWidgets.git] / src / generic / buttonbar.cpp
index 49e3210bb9b96dbb4939e545de6b7b61eef4b71a..343e7e585a91e1f955f48c53ad80f37f8df15a8b 100644 (file)
     #include "wx/frame.h"
     #include "wx/dcclient.h"
     #include "wx/settings.h"
+    #include "wx/image.h"
 #endif
 
-#include "wx/image.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;
 }