Fixed a bug with combo boxes where only 1 items was being displayed.

oldstable
Aric Stewart 2002-11-13 21:18:32 +00:00 committed by Alexandre Julliard
parent a817568231
commit bec403f6df
1 changed files with 2 additions and 2 deletions

View File

@ -1210,9 +1210,9 @@ static void CBDropDown( LPHEADCOMBO lphc )
if (nDroppedHeight < nIHeight)
{
if (nItems < 5)
nDroppedHeight = nHeight;
nDroppedHeight = (nItems+1)*nIHeight;
else
nDroppedHeight = 5*nIHeight;
nDroppedHeight = 6*nIHeight;
}
}