From 2b0ba7ee71e650e317476f4835eeb7a28832a8c7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 10 Jul 2001 12:59:48 +0000 Subject: [PATCH] made the button of correct size again (Robert, why did you comment this out??) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/combobox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index 2a7117c254..b25e4bcb64 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -88,7 +88,7 @@ public: SetBitmapSelected(bmpPressed); SetBitmapDisabled(bmpDisabled); -// SetSize(bmpNormal.GetWidth(), bmpNormal.GetHeight()); + SetSize(bmpNormal.GetWidth(), bmpNormal.GetHeight()); } protected: @@ -304,7 +304,7 @@ void wxComboControl::DoMoveWindow(int x, int y, int width, int height) wxCoord wText = width - sizeBtn.x; m_text->SetSize(x, y, wText, height); - m_btn->SetSize(x + wText, y, -1, height); + m_btn->SetSize(x + wText, y, sizeBtn.x, height); } // ---------------------------------------------------------------------------- -- 2.45.2