aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-08-23 01:07:07 +0000
committernyamatongwe <unknown>2005-08-23 01:07:07 +0000
commitc944887f1043a6ea1a57de02022effb4a5617849 (patch)
tree61960a5d12cbfc1a23472e0b20f371a21bd2a1ca /win32
parentfe41595bcad6da34f142f547702283d5764b5b3d (diff)
downloadscintilla-mirror-c944887f1043a6ea1a57de02022effb4a5617849.tar.gz
Took text insets into account when calculating maximum size of
autocompletion list.
Diffstat (limited to 'win32')
-rw-r--r--win32/PlatWin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index c59ac388b..c66fde02d 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1365,8 +1365,9 @@ Point ListBoxX::MinTrackSize() const {
}
Point ListBoxX::MaxTrackSize() const {
- PRectangle rc(0, 0, maxCharWidth * maxItemCharacters +
- + TextOffset() + ::GetSystemMetrics(SM_CXVSCROLL),
+ PRectangle rc(0, 0,
+ maxCharWidth * maxItemCharacters + TextInset.x * 2 +
+ TextOffset() + ::GetSystemMetrics(SM_CXVSCROLL),
ItemHeight() * lti.Count());
AdjustWindowRect(&rc);
return Point(rc.Width(), rc.Height());