diff --git a/dist/js/sth-select.js b/dist/js/sth-select.js index 5c441ab..1da9cf1 100644 --- a/dist/js/sth-select.js +++ b/dist/js/sth-select.js @@ -217,7 +217,11 @@ }); var popupHeight = _calculatePopupHeight(); var titleHeight = _$title.outerHeight(); - _$content.outerHeight(popupHeight - titleHeight); + var filterHeight = _$filter.outerHeight(); + var contentHeight = (popupHeight - titleHeight); + if(_properties.hasFilter) + contentHeight = contentHeight - filterHeight; + _$content.outerHeight(contentHeight); } /** @@ -380,4 +384,4 @@ $(document).ready(function loadFromHtmlAPI() { function boolFromString(string) { return string == "true"; } -}); \ No newline at end of file +});