diff --git a/dist/js/sth-select.js b/dist/js/sth-select.js index cb8d54f..5655024 100644 --- a/dist/js/sth-select.js +++ b/dist/js/sth-select.js @@ -218,7 +218,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); } /** @@ -381,4 +385,4 @@ $(document).ready(function loadFromHtmlAPI() { function boolFromString(string) { return string == "true"; } -}); \ No newline at end of file +});