From e231bca2ab580db0a0190a803f79122b9c61473a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 9 Apr 2003 01:37:05 +0000 Subject: [PATCH] More wxSTC tweaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/stc/PlatWX.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/src/stc/PlatWX.cpp b/contrib/src/stc/PlatWX.cpp index d4519322d6..a6f180557f 100644 --- a/contrib/src/stc/PlatWX.cpp +++ b/contrib/src/stc/PlatWX.cpp @@ -906,6 +906,10 @@ PRectangle ListBoxImpl::GetDesiredRect() { maxh = count * rect.GetHeight(); if (maxh > 140) // TODO: Use desiredVisibleRows?? maxh = 140; + + // Try to make the size an exact multiple of some number of lines + int lines = maxh / rect.GetHeight(); + maxh = (lines + 1) * rect.GetHeight() + 2; } else maxh = 100;