зеркало из https://github.com/mozilla/gecko-dev.git
autocomplete dropdown covers textbox when textbox is near bottom of screen. this only addresses XUL autocomple widgets. b=216434, r=mconnor
This commit is contained in:
Родитель
aeb958d61d
Коммит
414d413e86
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче