Change the calculation of how big the dropdown list should be. The max size

is now 20.
This commit is contained in:
rods%netscape.com 1998-08-12 20:05:25 +00:00
Родитель 11329ecec7
Коммит 4d6426e924
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -305,7 +305,7 @@ nsSelectFrame::GetDesiredSize(nsIPresContext* aPresContext,
aDesiredWidgetSize.width = aDesiredLayoutSize.width;
aDesiredWidgetSize.height = aDesiredLayoutSize.height;
if (select->mIsComboBox) { // add in pull down size
aDesiredWidgetSize.height += (rowHeight * numChildren) + 100;
aDesiredWidgetSize.height += (rowHeight * (numChildren > 20 ? 20 : numChildren)) + 100;
}
NS_RELEASE(select);