Commit acb308af authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

If we have no dropdown height give ourselves a minimum height of 5

items or max items (whichever is less).
parent 0393d43c
......@@ -1195,12 +1195,22 @@ static void CBDropDown( LPHEADCOMBO lphc )
if (nItems > 0)
{
int nHeight;
int nIHeight;
nHeight = (int)SendMessageW(lphc->hWndLBox, LB_GETITEMHEIGHT, 0, 0);
nHeight *= nItems;
nIHeight = (int)SendMessageW(lphc->hWndLBox, LB_GETITEMHEIGHT, 0, 0);
nHeight = nIHeight*nItems;
if (nHeight < nDroppedHeight - COMBO_YBORDERSIZE())
nDroppedHeight = nHeight + COMBO_YBORDERSIZE();
if (nDroppedHeight < nIHeight)
{
if (nItems < 5)
nDroppedHeight = nHeight;
else
nDroppedHeight = 5*nIHeight;
}
}
/*If height of dropped rectangle gets beyond a screen size it should go up, otherwise down.*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment