]> git.saurik.com Git - wxWidgets.git/commitdiff
making sure creation is setup correctly for wx-frame coordinates into cocoa-content...
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 21 Nov 2009 17:02:06 +0000 (17:02 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 21 Nov 2009 17:02:06 +0000 (17:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/nonownedwnd.mm

index 066989265c88e06b15dd782706f10f6b5eddc245..fd0b0a3648eb3ae27c62a8c47492d0b83f50d60b 100644 (file)
@@ -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