diff --git a/dist/js/sth-select.js b/dist/js/sth-select.js index 1da9cf1..18ad804 100644 --- a/dist/js/sth-select.js +++ b/dist/js/sth-select.js @@ -167,7 +167,7 @@ var titleHeight = _$title.outerHeight(); var contentHeight = allItemsHeight + titleHeight; - return contentHeight < MAX_HEIGHT ? contentHeight : MAX_HEIGHT; + return contentHeight < MAX_HEIGHT ? contentHeight : MAX_HEIGHT <= $(window).height() ? MAX_HEIGHT : $(window).height(); } /**