зеркало из https://github.com/mozilla/gecko-dev.git
Change the calculation of how big the dropdown list should be. The max size
is now 20.
This commit is contained in:
Родитель
11329ecec7
Коммит
4d6426e924
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче