From 10ef1a0e5427cea7763961db9d4e6909270dc3be Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 23 Aug 2005 01:07:07 +0000 Subject: Took text insets into account when calculating maximum size of autocompletion list. --- win32/PlatWin.cxx | 5 +++-- 1 file 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()); -- cgit v1.2.3