]> git.saurik.com Git - wxWidgets.git/commitdiff
don't change the control width when adjusting the height of the drop down list
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 19:51:52 +0000 (19:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 19:51:52 +0000 (19:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/choice.cpp

index 719e977f415ee133502e8a01028ec066199091a8..8e72b070786a4cdb57b4f478b29a7cf0477dd32c 100644 (file)
@@ -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)