From 590a2035ef4fbfb02da2a4f05490f33a8abe5bf6 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Fri, 11 Aug 2017 14:35:47 +0100 Subject: Fixed height of group share dropdown Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/3149 --- app/assets/javascripts/groups_select.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app') diff --git a/app/assets/javascripts/groups_select.js b/app/assets/javascripts/groups_select.js index b5975295329..4d629bc6326 100644 --- a/app/assets/javascripts/groups_select.js +++ b/app/assets/javascripts/groups_select.js @@ -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; -- cgit v1.2.3