From 4e8b4ba87feffb1d985c13f972890ae4eb983087 Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Fri, 17 Mar 2006 23:31:41 +0000 Subject: [PATCH] autocomplete dropdown covers textbox when textbox is near bottom of screen. this only addresses XUL autocomple widgets. b=216434, r=mconnor git-svn-id: svn://10.0.0.236/trunk@192567 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/content/widgets/autocomplete.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); + } } ]]>