Put the vertical limit back in for the AutoCOmp list box

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2001-10-20 17:49:06 +00:00
parent f7efcd8144
commit 9af175d227
2 changed files with 4 additions and 4 deletions

View File

@ -494,8 +494,8 @@ PRectangle ListBox::GetDesiredRect() {
rc.left = 0;
if (sz.x > 400)
sz.x = 400;
// if (sz.y > 150) // TODO: Use desiredVisibleRows??
// sz.y = 150; // For now just use the default from GetBestSize
if (sz.y > 160) // TODO: Use desiredVisibleRows??
sz.y = 160;
rc.right = sz.x;
rc.bottom = sz.y;
return rc;

View File

@ -494,8 +494,8 @@ PRectangle ListBox::GetDesiredRect() {
rc.left = 0;
if (sz.x > 400)
sz.x = 400;
// if (sz.y > 150) // TODO: Use desiredVisibleRows??
// sz.y = 150; // For now just use the default from GetBestSize
if (sz.y > 160) // TODO: Use desiredVisibleRows??
sz.y = 160;
rc.right = sz.x;
rc.bottom = sz.y;
return rc;