diff options
author | nyamatongwe <devnull@localhost> | 2005-08-23 01:07:07 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-08-23 01:07:07 +0000 |
commit | 10ef1a0e5427cea7763961db9d4e6909270dc3be (patch) | |
tree | 61960a5d12cbfc1a23472e0b20f371a21bd2a1ca | |
parent | f26b4af8f8599322d8fb0a170e975c1a759570f0 (diff) | |
download | scintilla-mirror-10ef1a0e5427cea7763961db9d4e6909270dc3be.tar.gz |
Took text insets into account when calculating maximum size of
autocompletion list.
-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()); |