From 5a8de6e08bf6f2c8dbc0f17662281314ae2cfc9b Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Tue, 26 Jun 2018 15:11:54 -0400 Subject: Bug 1452096 - Some custom dropdown UI widgets stay fixed and don't move with scroll --- js/comment-tagging.js | 2 ++ js/field.js | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'js') diff --git a/js/comment-tagging.js b/js/comment-tagging.js index 3897d46b8..44ca8b4ab 100644 --- a/js/comment-tagging.js +++ b/js/comment-tagging.js @@ -35,6 +35,8 @@ YAHOO.bugzilla.commentTagging = { if (!can_edit) return; $('#bz_ctag_add').devbridgeAutocomplete({ + appendTo: $('#main-inner'), + forceFixPosition: true, serviceUrl: function(query) { return 'rest/bug/comment/tags/' + encodeURIComponent(query); }, diff --git a/js/field.js b/js/field.js index 85011342d..a5e204f8d 100644 --- a/js/field.js +++ b/js/field.js @@ -713,6 +713,8 @@ $(function() { } var options_user = { + appendTo: $('#main-inner'), + forceFixPosition: true, serviceUrl: 'rest/elastic/suggest_users', params: { Bugzilla_api_token: BUGZILLA.api_token, @@ -792,6 +794,8 @@ $(function() { .each(function() { var that = $(this); that.devbridgeAutocomplete({ + appendTo: $('#main-inner'), + forceFixPosition: true, lookup: function(query, done) { var values = BUGZILLA.autocomplete_values[that.data('values')]; query = query.toLowerCase(); -- cgit v1.2.3-24-g4f1b