X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..de07d2004fd7813c01959102465a5107fce7f4c7:/src/univ/radiobox.cpp diff --git a/src/univ/radiobox.cpp b/src/univ/radiobox.cpp index fcbadbd566..c758abf74b 100644 --- a/src/univ/radiobox.cpp +++ b/src/univ/radiobox.cpp @@ -153,6 +153,11 @@ bool wxRadioBox::Create(wxWindow *parent, SetClientSize(DoGetBestClientSize()); } + // Need to move the radiobox in order to move the radio buttons + wxPoint actualPos = GetPosition(); + wxSize actualSize = GetSize(); + DoMoveWindow(actualPos.x, actualPos.y, actualSize.x, actualSize.y); + // radiobox should already have selection so select at least one item SetSelection(0);