don't change the control width when adjusting the height of the drop down list

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-02-07 19:51:52 +00:00
parent 71e57cd650
commit e69683678e

View 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)