Invalidate cache because best size was calculated earlier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-10-31 16:35:57 +00:00
parent c746b74707
commit 50c8b82054

View File

@@ -206,6 +206,10 @@ bool wxRadioBox::Create(wxWindow *parent,
SetWindowPos(GetHwnd(), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
#endif
// Have to invalidate the best size as it may have been calculated
// before the number of buttons was known
InvalidateBestSize();
SetMajorDim(majorDim == 0 ? n : majorDim, style);
SetSelection(0);
SetSize(pos.x, pos.y, size.x, size.y);