]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/toolbar.cpp
Explicitly forward non-command events along to the native control first.
[wxWidgets.git] / src / mac / carbon / toolbar.cpp
index d4382cc13772f9bd594b7a9f0b77b702e57d1bb1..7614e623124c412aec03d1abf1f5b3a91f02613a 100644 (file)
@@ -792,6 +792,8 @@ bool wxToolBar::Create(
     if ( !wxToolBarBase::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
         return false;
 
+    FixupStyle();
+
     OSStatus err = noErr;
 
 #if wxMAC_USE_NATIVE_TOOLBAR
@@ -1240,7 +1242,7 @@ bool wxToolBar::Realize()
     InvalidateBestSize();
 #endif
 
-    SetBestFittingSize();
+    SetInitialSize();
 
     return true;
 }