diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 2399079..517bbcc 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -228,7 +228,8 @@ fixPosition: function () { var that = this, - offset; + offset, + width; // Don't adjsut position if custom container has been specified: if (that.options.appendTo !== 'body') { @@ -236,10 +237,12 @@ } offset = that.el.offset(); + width = that.el.outerWidth() - 2; $(that.suggestionsContainer).css({ top: (offset.top + that.el.outerHeight()) + 'px', - left: offset.left + 'px' + left: offset.left + 'px', + width: width + 'px' }); },