From e69683678e8fd0a8ec73a7ba4557a1cec1675797 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Feb 2004 19:51:52 +0000 Subject: [PATCH] don't change the control width when adjusting the height of the drop down list git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/choice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 719e977f41..8e72b07078 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -414,7 +414,8 @@ int wxChoice::GetVisibleHeight() const void wxChoice::UpdateVisibleHeight() { - DoSetSize(-1, -1, -1, GetVisibleHeight()); + // be careful to not change the width here + DoSetSize(-1, -1, -1, GetVisibleHeight(), wxSIZE_USE_EXISTING); } void wxChoice::DoMoveWindow(int x, int y, int width, int height) -- 2.47.2