More wxSTC tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user