From bec403f6dfada2d54bac07e5f5ae2958fd132458 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Wed, 13 Nov 2002 21:18:32 +0000 Subject: [PATCH] Fixed a bug with combo boxes where only 1 items was being displayed. --- controls/combo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controls/combo.c b/controls/combo.c index 3ff0f2751d7..83e706520f0 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -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; } }