N°2215: Set autocomplete minimum width (instead of its width) to its parent field width

This commit is contained in:
Stephen Abello
2019-05-31 12:14:41 +02:00
parent 3791b2dd24
commit e886d80de6

View File

@@ -829,7 +829,7 @@
show: function() {
var offset = $(input).offset();
element.css({
width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),
'min-width': typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),
top: offset.top + input.offsetHeight,
left: offset.left
}).show();