Index: misc/autocomplete.js =================================================================== RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v retrieving revision 1.37 diff -u -r1.37 autocomplete.js --- misc/autocomplete.js 13 Jun 2010 05:31:02 -0000 1.37 +++ misc/autocomplete.js 16 Jun 2010 11:16:47 -0000 @@ -172,6 +172,8 @@ * Positions the suggestions popup and starts a search. */ Drupal.jsAC.prototype.populatePopup = function () { + var input = $(this.input); + var position = input.position(); // Show popup. if (this.popup) { $(this.popup).remove(); @@ -180,11 +182,12 @@ this.popup = $('
')[0]; this.popup.owner = this; $(this.popup).css({ - marginTop: this.input.offsetHeight + 'px', - width: (this.input.offsetWidth - 4) + 'px', + top: parseInt(position.top + this.input.offsetHeight) + 'px', + left: parseInt(position.left) + 'px', + width: input.innerWidth() + 'px', display: 'none' }); - $(this.input).before(this.popup); + input.before(this.popup); // Do search. this.db.owner = this;