Skip to content

Commit

Permalink
Merge pull request #13 from coderwassananmol/patch-1
Browse files Browse the repository at this point in the history
Proposed patch for issue #11
  • Loading branch information
StanleySathler authored Oct 8, 2017
2 parents 225bb00 + 96cb1a5 commit 5b3b6c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dist/js/sth-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -380,4 +384,4 @@ $(document).ready(function loadFromHtmlAPI() {
function boolFromString(string) {
return string == "true";
}
});
});

0 comments on commit 5b3b6c2

Please sign in to comment.