From: Stefan Csomor Date: Tue, 29 Aug 2006 12:16:47 +0000 (+0000) Subject: make sure we are feeding coordinates of HIView instances, not wx-dimensions back... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/da14a87deeff28f76ac530fba5023edf4f694d83 make sure we are feeding coordinates of HIView instances, not wx-dimensions back into toolbar layout git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp index 958f7127f7..af1ccc6717 100644 --- a/src/mac/carbon/toolbar.cpp +++ b/src/mac/carbon/toolbar.cpp @@ -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 ...