diff options
author | Phil Hughes <me@iamphill.com> | 2017-08-11 14:35:47 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-11 14:35:55 +0100 |
commit | 5407e83b9ccf7dd23d5ce1157a2946494e42a578 (patch) | |
tree | c8ca525676f4aef46760100002b7521231c66332 | |
parent | fbd226ae48f54415d5ff566848668c2d932fd57a (diff) | |
download | gitlab-ce-fix-height-of-group-share-dropdown.tar.gz |
Fixed height of group share dropdownfix-height-of-group-share-dropdown
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/3149
-rw-r--r-- | app/assets/javascripts/groups_select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/groups_select.js b/app/assets/javascripts/groups_select.js index b5975295329..b10eb6bca6a 100644 --- a/app/assets/javascripts/groups_select.js +++ b/app/assets/javascripts/groups_select.js @@ -112,7 +112,7 @@ window.GroupsSelect = (function() { GroupsSelect.prototype.forceOverflow = function (e) { const itemHeight = this.dropdown.querySelector('.select2-result:first-child').clientHeight; - this.dropdown.style.height = `${Math.floor(this.dropdown.scrollHeight - (itemHeight * 0.9))}px`; + this.dropdown.style.height = `${Math.floor(this.dropdown.scrollHeight)}px`; }; GroupsSelect.PER_PAGE = 20; |