mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 399316 - Bug introduced with patch for bug 216434 (autocomplete dropdown covers textbox when textbox is near bottom of screen), r=neil, a=mconnor
This commit is contained in:
parent
036806699a
commit
efc1f794ab
@ -524,7 +524,7 @@
|
||||
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
||||
</resources>
|
||||
|
||||
<content minwidth="100">
|
||||
<content>
|
||||
<xul:tree anonid="tree" class="autocomplete-tree plain" hidecolumnpicker="true" flex="1">
|
||||
<xul:treecols anonid="treecols">
|
||||
<xul:treecol id="treecolAutoCompleteValue" class="autocomplete-treecol" flex="1" overflow="true"/>
|
||||
@ -584,7 +584,8 @@
|
||||
document.popupNode = null;
|
||||
|
||||
var rect = aElement.getBoundingClientRect();
|
||||
this.setAttribute("width", rect.right - rect.left);
|
||||
var width = rect.right - rect.left;
|
||||
this.setAttribute("width", width > 100 ? width : 100);
|
||||
this.openPopup(aElement, "after_start", 0, 0, false, false);
|
||||
|
||||
this.popupBoxObject.setConsumeRollupEvent(this.mInput.consumeRollupEvent);
|
||||
|
@ -1405,7 +1405,7 @@
|
||||
<stylesheet src="chrome://global/skin/autocomplete.css"/>
|
||||
</resources>
|
||||
|
||||
<content minwidth="100">
|
||||
<content>
|
||||
<xul:tree anonid="tree" class="autocomplete-tree plain" flex="1">
|
||||
<xul:treecols anonid="treecols">
|
||||
<xul:treecol class="autocomplete-treecol" id="treecolAutoCompleteValue" flex="2"/>
|
||||
@ -1575,7 +1575,8 @@
|
||||
this.invalidate();
|
||||
|
||||
var rect = aElement.getBoundingClientRect();
|
||||
this.setAttribute("width", rect.right - rect.left);
|
||||
var width = rect.right - rect.left;
|
||||
this.setAttribute("width", width > 100 ? width : 100);
|
||||
this.openPopup(aElement, "after_start", 0, 0, false, false);
|
||||
|
||||
this.popupBoxObject.setConsumeRollupEvent(aInput.consumeRollupEvent);
|
||||
|
Loading…
Reference in New Issue
Block a user