X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71e57cd6506760f7ca0e3195a5ecf99d78a77be9..5c250a10332dc17263c66deb629b5fa8c4320f8a:/src/msw/choice.cpp?ds=sidebyside 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)