diff --git a/mozilla/toolkit/content/widgets/autocomplete.xml b/mozilla/toolkit/content/widgets/autocomplete.xml index 39d7fcf2bf8..bf6e909d8e6 100644 --- a/mozilla/toolkit/content/widgets/autocomplete.xml +++ b/mozilla/toolkit/content/widgets/autocomplete.xml @@ -321,7 +321,7 @@ @@ -568,7 +568,12 @@ this.setAttribute("width", aWidth < 100 ? 100 : aWidth); document.popupNode = null; - this.showPopup(document.documentElement, aX, aY, "popup", null, null); + if (aY == -1) { + this.showPopup(this.mInput, -1, -1, "popup", 'bottomleft', 'topleft'); + } + else { + this.showPopup(document.documentElement, aX, aY, "popup", null, null); + } } ]]>