]> git.saurik.com Git - wxWidgets.git/commitdiff
make sure we are feeding coordinates of HIView instances, not wx-dimensions back...
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Aug 2006 12:16:47 +0000 (12:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Aug 2006 12:16:47 +0000 (12:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toolbar.cpp

index 958f7127f7f614e4bc848a05bef0eaa3bd2f7069..af1ccc671770799f62743a41ac2e7c1cca901a3a 100644 (file)
@@ -649,6 +649,8 @@ static pascal OSStatus ControlToolbarItemHandler( EventHandlerCallRef inCallRef,
                     if ( wxwindow )
                     {
                         wxSize sz = wxwindow->GetSize() ;
+                        sz.x -= wxwindow->MacGetLeftBorderSize() + wxwindow->MacGetRightBorderSize();
+                        sz.y -= wxwindow->MacGetTopBorderSize() + wxwindow->MacGetBottomBorderSize();
                         // during toolbar layout the native window sometimes gets negative sizes
                         // so we always keep the last valid size here, to make sure we survive the
                         // shuffle ...