summaryrefslogtreecommitdiffstats
path: root/core/src/jquery/ui-fixes.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/jquery/ui-fixes.js')
-rw-r--r--core/src/jquery/ui-fixes.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/jquery/ui-fixes.js b/core/src/jquery/ui-fixes.js
new file mode 100644
index 00000000000..d3cebfc346e
--- /dev/null
+++ b/core/src/jquery/ui-fixes.js
@@ -0,0 +1,8 @@
+import $ from 'jquery'
+
+// Set autocomplete width the same as the related input
+// See http://stackoverflow.com/a/11845718
+$.ui.autocomplete.prototype._resizeMenu = function () {
+ var ul = this.menu.element;
+ ul.outerWidth(this.element.outerWidth());
+};