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
This commit is contained in:
dougt%meer.net
2006-03-17 23:31:41 +00:00
parent 9917ccda5b
commit 4e8b4ba87f

View File

@@ -321,7 +321,7 @@
<method name="openPopup">
<body><![CDATA[
this.popup.openPopup(this, this.boxObject.screenX, this.boxObject.screenY+this.boxObject.height, this.boxObject.width);
this.popup.openPopup(this, -1, -1, this.boxObject.width);
]]></body>
</method>
@@ -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);
}
}
]]></body>
</method>