X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/528a5fe43f290a45e022608f1f807e665a5f6594..0fa784572f2324fe246158d8eec9492fac604483:/src/univ/radiobox.cpp?ds=sidebyside diff --git a/src/univ/radiobox.cpp b/src/univ/radiobox.cpp index 4d1b1f17f5..249fba0b25 100644 --- a/src/univ/radiobox.cpp +++ b/src/univ/radiobox.cpp @@ -389,9 +389,10 @@ void wxRadioBox::DoMoveWindow(int x0, int y0, int width, int height) wxSize sizeBtn = GetMaxButtonSize(); wxPoint ptOrigin = GetBoxAreaOrigin(); + wxPoint clientOrigin = GetParent() ? GetParent()->GetClientAreaOrigin() : wxPoint(0,0); - x0 += ptOrigin.x + BOX_BORDER_X; - y0 += ptOrigin.y + BOX_BORDER_Y; + x0 += ptOrigin.x + BOX_BORDER_X - clientOrigin.x; + y0 += ptOrigin.y + BOX_BORDER_Y - clientOrigin.y; int x = x0, y = y0;