X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8e65eeeae46b9df8577903469c65bb218489372..6cc687bfee071b5328f9e48d1708795287006bb7:/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