user32: Make sure there is space for at least 6 items in a combo dropdown without forcing it to be at most 6 items as well.

This commit is contained in:
Aric Stewart 2008-04-11 09:07:31 -05:00 committed by Alexandre Julliard
parent 63d2d041d9
commit d0cf2342df

View file

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