From f022dc238aa392e951e625ef7105d6e9bfd9572a Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Tue, 16 Dec 2008 13:59:04 +0000
Subject: [PATCH] fix initial best size of (check) list boxes under MSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/msw/listbox.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp
index 9252783bed..1c7c0b5785 100644
--- a/src/msw/listbox.cpp
+++ b/src/msw/listbox.cpp
@@ -177,7 +177,8 @@ bool wxListBox::Create(wxWindow *parent,
         Append(choices[i]);
     }
 
-    // now we can compute our best size correctly, so do it if necessary
+    // now we can compute our best size correctly, so do it again
+    InvalidateBestSize();
     SetInitialSize(size);
 
     return true;
-- 
2.49.0