From 0152b34124b07758f6664014b3fa6e644be07a83 Mon Sep 17 00:00:00 2001 From: Anmol Wassan Date: Sun, 8 Oct 2017 21:29:30 +0000 Subject: [PATCH] Update for devices with height < 500px --- dist/js/sth-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**