Skip to content

Commit

Permalink
Proposed patch for issue ss-javascript#11
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwassananmol authored Oct 5, 2017
1 parent d5d02a3 commit e7a9b4f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dist/js/sth-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@
_renderList();

var height = _calculatePopupHeight();
_$popup.animate({ height: height }, 500);
if(height == MAX_HEIGHT) {
_$popup.css({'height':'auto'});
height = _$popup.height();
_$popup.animate({ height:height}, 500);
}
else
_$popup.animate({ height: height }, 500);
}

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

0 comments on commit e7a9b4f

Please sign in to comment.