diff options
-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()); |