X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6264b550ad4bc372287abce98770cf056aa72057..33754c4d83c59b7523a6da0c4fb21079cb60301c:/src/mac/window.cpp?ds=sidebyside diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 11948e733d..b3100bf14e 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -349,7 +349,7 @@ void wxWindowMac::DoGetPosition(int *x, int *y) const xx = m_x ; yy = m_y ; - if (GetParent()) + if (!m_macWindowData && GetParent()) { wxPoint pt(GetParent()->GetClientAreaOrigin()); xx -= pt.x; @@ -670,6 +670,7 @@ void wxWindowMac::DoSetSize(int x, int y, int width, int height, int sizeFlags) // get the current size and position... int currentX, currentY; GetPosition(¤tX, ¤tY); + int currentW,currentH; GetSize(¤tW, ¤tH);