]> git.saurik.com Git - wxWidgets.git/commitdiff
Invalidate cache because best size was calculated earlier
authorJulian Smart <julian@anthemion.co.uk>
Tue, 31 Oct 2006 16:35:57 +0000 (16:35 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 31 Oct 2006 16:35:57 +0000 (16:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/radiobox.cpp

index c8f410dc26625d316a558778325451b353d0f0cd..af016c9a1599bd7593b79cf0e4d8f32ff5fdcaf0 100644 (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);