Commit 05fe4545 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'fix-height-of-group-share-dropdown' into 'master'

Fixed height of group share dropdown

Closes gitlab-ee#3149

See merge request !13505
parents c3e0f31d 590a2035
......@@ -111,8 +111,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment