diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 2fd1559bae..62fb443d5e 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -3083,6 +3083,13 @@ void wxWidgetCocoaImpl::GetContentArea( int&left, int &top, int &width, int &hei { left = top = 0; GetSize( width, height ); + + int leftinset, topinset, rightinset, bottominset; + GetLayoutInset( leftinset, topinset, rightinset, bottominset); + left += leftinset; + top += topinset; + width -= leftinset + rightinset; + height -= topinset + bottominset; } }