Bug 585991 - Show a popup listing possible completions; r=rcampbell,dtownsend sr=neil
authorMihai Sucan <mihai.sucan@gmail.com>
Wed, 18 May 2011 19:10:28 +0300
changeset 69842 28bb68eee2fd654a9d66a809366a0d2757763f9e
parent 69841 38c72ce2dae4b6909459f8e14080acb7e7dbbb31
child 69843 6b0c16915edd02d09f0e5f5d5040a797fb736d3f
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersrcampbell, dtownsend, neil
bugs585991
milestone6.0a1
Bug 585991 - Show a popup listing possible completions; r=rcampbell,dtownsend sr=neil
toolkit/components/console/hudservice/AutocompletePopup.jsm
--- a/toolkit/components/console/hudservice/AutocompletePopup.jsm
+++ b/toolkit/components/console/hudservice/AutocompletePopup.jsm
@@ -218,17 +218,25 @@ AutocompletePopup.prototype = {
   /**
    * Clear all the items from the autocomplete list.
    */
   clearItems: function AP_clearItems()
   {
     while (this._list.hasChildNodes()) {
       this._list.removeChild(this._list.firstChild);
     }
+
+    // Reset the panel and list dimensions. New dimensions are calculated when a
+    // new set of items is added to the autocomplete popup.
     this._list.width = "";
+    this._list.height = "";
+    this._panel.width = "";
+    this._panel.height = "";
+    this._panel.top = "";
+    this._panel.left = "";
   },
 
   /**
    * Getter for the index of the selected item.
    *
    * @type number
    */
   get selectedIndex() {