| Index: third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js b/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js
|
| index 6f8e04eac3fb2b70a9b9f604af41789b2804e13f..45f89fe95ff8d9a888d80c661bec638bbab2bfd0 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/SuggestBox.js
|
| @@ -135,7 +135,7 @@ WebInspector.SuggestBox.prototype = {
|
| this._overlay.setVerticalOffset(totalHeight - anchorBox.y, false);
|
|
|
| var spacer = 6;
|
| - var maxHeight = this._maxItemsHeight ? this._maxItemsHeight * this._rowHeight : Math.max(underHeight, aboveHeight) - spacer;
|
| + var maxHeight = Math.min(Math.max(underHeight, aboveHeight) - spacer, this._maxItemsHeight ? this._maxItemsHeight * this._rowHeight : 0);
|
| var height = this._rowHeight * this._items.length;
|
| this._hasVerticalScroll = height > maxHeight;
|
| this._element.style.height = Math.min(maxHeight, height) + "px";
|
|
|