]> git.saurik.com Git - wxWidgets.git/commitdiff
reverted Julian's unintentional breakage of wxChoice
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 6 Apr 2002 15:01:56 +0000 (15:01 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 6 Apr 2002 15:01:56 +0000 (15:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/choice.cpp

index 32b36c3603fd51618f724505ebebe7c270c9ea4f..2f7587a4f30636f60ef83a1cad045acdb1477332 100644 (file)
@@ -281,8 +281,7 @@ void wxChoice::DoSetSize(int x, int y,
     // the _displayed_ size (NOT the drop down menu size) so
     // setting-getting-setting size would not work.
 
-    wxSize sz = GetSize();
-    wxControl::DoSetSize(x, y, width, sz.y, sizeFlags);
+    wxControl::DoSetSize(x, y, width, -1, sizeFlags);
 }
 
 wxSize wxChoice::DoGetBestSize() const