From c5825827fb07f6ecc6c7162567af870069682f91 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 8 Jun 2016 02:40:18 +0200 Subject: [PATCH] Ensure that picker controls are laid out A picker control could have a completely broken appearance if its size was never changed from the initial size under MSW. For the picker controls inside a sizer this was indirectly fixed by the previous commit ("Make wxSIZE_FORCE_EVENT work if only position changed in wxMSW"), but the controls not managed by a sizer still didn't come up correctly, so add an explicit Layout() call to ensure they do. --- src/common/pickerbase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index a435a0598a..ffe484e9e4 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -133,6 +133,8 @@ void wxPickerBase::PostCreation() SetSizer(m_sizer); SetInitialSize( GetMinSize() ); + + Layout(); } #if wxUSE_TOOLTIPS