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:
parent
94ee8e8fac
commit
ea60a508b1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue