]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/resourc2.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / common / resourc2.cpp
index 42deac36a0895214f6018e0287678195ce49ac4a..7774e5a7c51a6d61dbfab18caa03ceb5ad276e43 100644 (file)
@@ -1545,6 +1545,10 @@ bool wxWindow::LoadFromResource(wxWindow *parent, const wxString& resourceName,
     SetClientSize(sz.x, sz.y);
 
     wxPoint pt = ConvertDialogToPixels(wxPoint(x, y));
+    #ifdef __WXMAC__
+    int mbarheight = 2 * LMGetMBarHeight() ;
+               pt.y += mbarheight ;
+    #endif
     Move(pt.x, pt.y);
   }