зеркало из https://github.com/mozilla/pjs.git
Finally fixed autocomplete.
This commit is contained in:
Родитель
6ecbbf9378
Коммит
229fb773cd
|
@ -48,7 +48,7 @@
|
|||
this.ifSetAttribute("disablehistory", true);
|
||||
|
||||
mController = Components.classes["@mozilla.org/autocomplete/controller;1"].
|
||||
getService(Components.interfaces.nsIAutoCompleteController);
|
||||
createInstance(Components.interfaces.nsIAutoCompleteController);
|
||||
]]></constructor>
|
||||
|
||||
<!-- =================== nsIAccessibleProvider =================== -->
|
||||
|
@ -402,9 +402,6 @@
|
|||
|
||||
<constructor><![CDATA[
|
||||
this.setAttribute("ignorekeys", "true");
|
||||
|
||||
this.view = Components.classes["@mozilla.org/autocomplete/controller;1"].
|
||||
getService(Components.interfaces.nsITreeView);
|
||||
]]></constructor>
|
||||
|
||||
<!-- =================== nsIAutoCompletePopup =================== -->
|
||||
|
@ -435,8 +432,12 @@
|
|||
<parameter name="aWidth"/>
|
||||
<body><![CDATA[
|
||||
if (!this.mPopupOpen) {
|
||||
this.mInput = aInput;
|
||||
|
||||
if (!this.mInput) {
|
||||
this.mInput = aInput;
|
||||
this.view = this.mInput.mController;
|
||||
this.invalidate();
|
||||
}
|
||||
|
||||
this.showCommentColumn = this.mInput.showCommentColumn;
|
||||
|
||||
this.removeAttribute("hidden");
|
||||
|
|
Загрузка…
Ссылка в новой задаче