]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/frame.cpp
[ 1550698 ] Bottom aligned toolbar
[wxWidgets.git] / src / mac / carbon / frame.cpp
index b630e653f4b7c94c8088c4cec87145f1b5f271b2..b327bfa9bfcfad096822d7a0f7881140d0b04cfa 100644 (file)
@@ -366,6 +366,12 @@ void wxFrame::PositionToolBar()
             // have the original client size.
             GetToolBar()->SetSize(tx , ty , tw, ch , wxSIZE_NO_ADJUSTMENTS );
         }
+        else if (GetToolBar->GetWindowStyleFlag() & wxTB_BOTTOM)
+        {
+            tx = 0;
+            ty = statusY - th;
+                        GetToolBar->SetSize(tx, ty, cw, th, wxSIZE_NO_ADJUSTMENTS );
+        }
         else
         {
 #if !wxMAC_USE_NATIVE_TOOLBAR