Commit 905fd30a authored by Steven Wittens's avatar Steven Wittens
Browse files

#104537: Fix autocomplete dropdown positioning in IE6 and IE7.

parent 2059333c
...@@ -173,18 +173,16 @@ Drupal.jsAC.prototype.populatePopup = function () { ...@@ -173,18 +173,16 @@ Drupal.jsAC.prototype.populatePopup = function () {
if (this.popup) { if (this.popup) {
$(this.popup).remove(); $(this.popup).remove();
} }
var pos = Drupal.absolutePosition(this.input);
this.selected = false; this.selected = false;
this.popup = document.createElement('div'); this.popup = document.createElement('div');
this.popup.id = 'autocomplete'; this.popup.id = 'autocomplete';
this.popup.owner = this; this.popup.owner = this;
$(this.popup).css({ $(this.popup).css({
top: (pos.y + this.input.offsetHeight) +'px', marginTop: this.input.offsetHeight +'px',
left: pos.x +'px',
width: (this.input.offsetWidth - 4) +'px', width: (this.input.offsetWidth - 4) +'px',
display: 'none' display: 'none'
}); });
$('body').append(this.popup); $(this.input).before(this.popup);
// Do search // Do search
this.db.owner = this; this.db.owner = this;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment