diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-05-21 10:50:59 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-05-27 12:33:47 +0800 |
commit | 3141b800b74576d5b5dfc84a96353fea47ae974b (patch) | |
tree | 4c05719b059496e1d0ecbac1d595e5c85a2d1fd8 /app/assets/javascripts/gl_dropdown.js | |
parent | e59c3f8e3ad2e9b6a3431fa94d629eb6d5043972 (diff) | |
download | gitlab-ce-3141b800b74576d5b5dfc84a96353fea47ae974b.tar.gz |
Fix dropdown position when loading remote data61639-flaky-spec-issue-boards-labels-creates-project-label-spec-features-boards-sidebar_spec-rb-350
Also fixes flaky spec
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js index 1c6b18c0e03..b9fe75c3664 100644 --- a/app/assets/javascripts/gl_dropdown.js +++ b/app/assets/javascripts/gl_dropdown.js @@ -335,6 +335,10 @@ GitLabDropdown = (function() { _this.fullData = data; _this.parseData(_this.fullData); _this.focusTextInput(); + + // Update dropdown position since remote data may have changed dropdown size + _this.dropdown.find('.dropdown-menu-toggle').dropdown('update'); + if ( _this.options.filterable && _this.filter && |