summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-12-30 12:10:00 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-12-30 12:10:00 +0000
commit905fd30abbc9195bad3c37d966f220f60dcb671c (patch)
treefd0ee24e5fe30170350b53f2666fb8ef5726d911 /misc
parent2059333c09d931ca5eba3a6081698c6854e749d3 (diff)
downloadbrdo-905fd30abbc9195bad3c37d966f220f60dcb671c.tar.gz
brdo-905fd30abbc9195bad3c37d966f220f60dcb671c.tar.bz2
#104537: Fix autocomplete dropdown positioning in IE6 and IE7.
Diffstat (limited to 'misc')
-rw-r--r--misc/autocomplete.js6
1 files changed, 2 insertions, 4 deletions
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;