diff options
author | nyamatongwe <unknown> | 2005-08-23 01:07:07 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-08-23 01:07:07 +0000 |
commit | c944887f1043a6ea1a57de02022effb4a5617849 (patch) | |
tree | 61960a5d12cbfc1a23472e0b20f371a21bd2a1ca /win32 | |
parent | fe41595bcad6da34f142f547702283d5764b5b3d (diff) | |
download | scintilla-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.cxx | 5 |
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()); |