From 9528045178b53fbf3b97d344dda1fd448b4989cf Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Fri, 25 Nov 2016 16:42:53 +0100 Subject: Add jquery ui fixes js file + fix autocomplete width (fix #2324) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/js/jquery-ui-fixes.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 core/js/jquery-ui-fixes.js (limited to 'core/js/jquery-ui-fixes.js') diff --git a/core/js/jquery-ui-fixes.js b/core/js/jquery-ui-fixes.js new file mode 100644 index 00000000000..9ccaa38cc47 --- /dev/null +++ b/core/js/jquery-ui-fixes.js @@ -0,0 +1,8 @@ +// Various jquery fixes + +// Set autocomplete width the same as the related input +// See http://stackoverflow.com/a/11845718 +jQuery.ui.autocomplete.prototype._resizeMenu = function () { + var ul = this.menu.element; + ul.outerWidth(this.element.outerWidth()); +} -- cgit v1.2.3