From 01639b0809cfceac03392aeefd5a5d8af62b2014 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 21 Nov 2009 17:02:06 +0000 Subject: [PATCH 1/1] making sure creation is setup correctly for wx-frame coordinates into cocoa-content coordinates, fixes #11463 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/nonownedwnd.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osx/cocoa/nonownedwnd.mm b/src/osx/cocoa/nonownedwnd.mm index 066989265c..fd0b0a3648 100644 --- a/src/osx/cocoa/nonownedwnd.mm +++ b/src/osx/cocoa/nonownedwnd.mm @@ -449,6 +449,7 @@ long style, long extraStyle, const wxString& WXUNUSED(name) ) NSRect r = wxToNSRect( NULL, wxRect( pos, size) ); [m_macWindow setImplementation:this]; + r = [NSWindow contentRectForFrameRect:r styleMask:windowstyle]; [m_macWindow initWithContentRect:r styleMask:windowstyle -- 2.47.2