X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..c1066cdf62de692cec3b61f68da35263aa17b1c0:/src/msw/button.cpp diff --git a/src/msw/button.cpp b/src/msw/button.cpp index 13f671d53b..83928e90f5 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -106,6 +106,8 @@ void wxButton::SetSize(int x, int y, int width, int height, int sizeFlags) if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE)) y1 = currentY; + AdjustForParentClientOrigin(x1, y1, sizeFlags); + int actualWidth = width; int actualHeight = height; int ww, hh;