From 7e6c1c34b3a36e08c2e1dbb0004b0b13304c2b5b Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 3 Jan 2003 12:22:11 +0000 Subject: [PATCH] fixed the positioning of the choice subcontrol (resulted in redraw errors clipping off 2 pixels on the right) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/combobox.cpp | 2 +- src/mac/combobox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index 22924613ea..59a0edf814 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -205,7 +205,7 @@ void wxComboBox::DoMoveWindow(int x, int y, int width, int height) { } else { - wxCoord wText = width - POPUPWIDTH; + wxCoord wText = width - POPUPWIDTH - MARGIN ; m_text->SetSize(0, 0, wText, height); m_choice->SetSize(0 + wText + MARGIN, 0, POPUPWIDTH, -1); } diff --git a/src/mac/combobox.cpp b/src/mac/combobox.cpp index 22924613ea..59a0edf814 100644 --- a/src/mac/combobox.cpp +++ b/src/mac/combobox.cpp @@ -205,7 +205,7 @@ void wxComboBox::DoMoveWindow(int x, int y, int width, int height) { } else { - wxCoord wText = width - POPUPWIDTH; + wxCoord wText = width - POPUPWIDTH - MARGIN ; m_text->SetSize(0, 0, wText, height); m_choice->SetSize(0 + wText + MARGIN, 0, POPUPWIDTH, -1); }