Bug 528279: Portion of larry ui shown when adding a search engine [r=vingtetun]
authorMark Finkle <mfinkle@mozilla.com>
Fri, 20 Nov 2009 23:41:58 -0500
changeset 1141 845ea5aaf3f4263a51b9ce28471c5ad7a5878946
parent 1140 71960b76e44e41cf7daaff1b9e0fa6f697e7cb94
child 1142 875f06cd2ffcf3b1ac883df5ee75b29ee1cfc9a0
push id1008
push usermfinkle@mozilla.com
push dateMon, 23 Nov 2009 04:05:11 +0000
reviewersvingtetun
bugs528279
Bug 528279: Portion of larry ui shown when adding a search engine [r=vingtetun]
chrome/content/browser.js
--- a/chrome/content/browser.js
+++ b/chrome/content/browser.js
@@ -1472,35 +1472,35 @@ const BrowserSearch = {
     }, this);
 
     let container = document.getElementById('search-container');
     let buttons = container.getElementsByAttribute("class", "search-engine-button button-dark");
     for (let i=0; i<buttons.length; i++)
       container.removeChild(buttons[i]);
 
     if (newEngines.length == 0) {
-      container.hidden = true;
+      container.collapsed = true;
       return;
     }
 
     // XXX limit to the first search engine for now
     for (let i = 0; i<1; i++) {
       let button = document.createElement("button");
       button.className = "search-engine-button button-dark";
-      button.setAttribute("oncommand", "BrowserSearch.addPermanentSearchEngine(this.engine);this.parentNode.hidden=true;");
+      button.setAttribute("oncommand", "BrowserSearch.addPermanentSearchEngine(this.engine);this.parentNode.collapsed=true;");
       
       let engine = newEngines[i];
       button.engine = engine.engine;
       button.setAttribute("label", engine.engine.title);
       button.setAttribute("image", BrowserUI._favicon.src);
 
       container.appendChild(button);
     }
 
-    container.hidden = false;
+    container.collapsed = false;
   },
 
   addPermanentSearchEngine: function (aEngine) {
     let iconURL = BrowserUI._favicon.src;
     this.searchService.addEngine(aEngine.href, Ci.nsISearchEngine.DATA_XML, iconURL, false);
 
     this._engines = null;
   },