X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/528a5fe43f290a45e022608f1f807e665a5f6594..761df41e86ceeed56d32c038a6c9f88554d4f47a:/src/univ/radiobox.cpp 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;