From 905fd30abbc9195bad3c37d966f220f60dcb671c Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 30 Dec 2006 12:10:00 +0000 Subject: #104537: Fix autocomplete dropdown positioning in IE6 and IE7. --- misc/autocomplete.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'misc') diff --git a/misc/autocomplete.js b/misc/autocomplete.js index 593fb5e0a..b0c454c77 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -173,18 +173,16 @@ Drupal.jsAC.prototype.populatePopup = function () { if (this.popup) { $(this.popup).remove(); } - var pos = Drupal.absolutePosition(this.input); this.selected = false; this.popup = document.createElement('div'); this.popup.id = 'autocomplete'; this.popup.owner = this; $(this.popup).css({ - top: (pos.y + this.input.offsetHeight) +'px', - left: pos.x +'px', + marginTop: this.input.offsetHeight +'px', width: (this.input.offsetWidth - 4) +'px', display: 'none' }); - $('body').append(this.popup); + $(this.input).before(this.popup); // Do search this.db.owner = this; -- cgit v1.2.3