projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5acaf19
)
fixed misplaced subcontrols of wxComboBox
author
Václav Slavík
<vslavik@fastmail.fm>
Tue, 25 Dec 2001 23:34:57 +0000
(23:34 +0000)
committer
Václav Slavík
<vslavik@fastmail.fm>
Tue, 25 Dec 2001 23:34:57 +0000
(23:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13195
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/univ/combobox.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/univ/combobox.cpp
b/src/univ/combobox.cpp
index dc644e1699d1ed8012946d150aea74e53587a9f5..54ce379716f3f4638b5de833d2835b8ab2027c6e 100644
(file)
--- a/
src/univ/combobox.cpp
+++ b/
src/univ/combobox.cpp
@@
-314,8
+314,9
@@
void wxComboControl::DoMoveWindow(int x, int y, int width, int height)
wxSize sizeBtn = m_btn->GetBestSize();
wxCoord wText = width - sizeBtn.x;
- m_text->SetSize(x, y, wText, height);
- m_btn->SetSize(x + wText, y, sizeBtn.x, height);
+ wxPoint p = GetParent() ? GetParent()->GetClientAreaOrigin() : wxPoint(0,0);
+ m_text->SetSize(x - p.x, y - p.y, wText, height);
+ m_btn->SetSize(x - p.x + wText, y - p.y, sizeBtn.x, height);
}
// ----------------------------------------------------------------------------