user32: We are calculating the height for the drop down based on

number of items however the if statement used nIHeight (just the
height of 1 item) and not nHeight (the height all the items).
This commit is contained in:
Aric Stewart 2007-02-02 15:04:23 -06:00 committed by Alexandre Julliard
parent 94ee8e8fac
commit ea60a508b1
1 changed files with 1 additions and 1 deletions

View File

@ -1116,7 +1116,7 @@ static void CBDropDown( LPHEADCOMBO lphc )
if (nHeight < nDroppedHeight - COMBO_YBORDERSIZE()) if (nHeight < nDroppedHeight - COMBO_YBORDERSIZE())
nDroppedHeight = nHeight + COMBO_YBORDERSIZE(); nDroppedHeight = nHeight + COMBO_YBORDERSIZE();
if (nDroppedHeight < nIHeight) if (nDroppedHeight < nHeight)
{ {
if (nItems < 5) if (nItems < 5)
nDroppedHeight = (nItems+1)*nIHeight; nDroppedHeight = (nItems+1)*nIHeight;