X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8e65eeeae46b9df8577903469c65bb218489372..19e30148e18cc99296b26503c155e5cef59045f4:/src/msw/choice.cpp diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 32b36c3603..2f7587a4f3 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -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