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
This commit is contained in:
Stefan Csomor
2003-01-03 12:22:11 +00:00
parent ca827deb02
commit 7e6c1c34b3
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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);
}