Workaround for bug 685457 URLbar popup not shrinking when there are no results r=IanN a=IanN for comm-aurora and comm-beta.
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Sat, 17 Sep 2011 03:23:46 +0800
changeset 8473 0627ba566647a71c2ac2a9c4b5687caf9ca3e135
parent 8472 b12a9c07a5c7dfa4b82bcca336d82d8a91f30662
child 8475 b7ed5fe0f2b7c63ca4cfa76762538f84589e6fc1
push id137
push userphilip.chee@gmail.com
push dateFri, 16 Sep 2011 19:24:28 +0000
treeherdercomm-beta@0627ba566647 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs685457
Workaround for bug 685457 URLbar popup not shrinking when there are no results r=IanN a=IanN for comm-aurora and comm-beta.
suite/browser/navigator.css
--- a/suite/browser/navigator.css
+++ b/suite/browser/navigator.css
@@ -38,16 +38,20 @@ tabbrowser {
 .paste-and-go {
   -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#input-box-paste");
 }
 
 panel[for="urlbar"] {
   -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#autocomplete-result-popup") !important;
 }
 
+panel[nomatch="true"] > .autocomplete-tree {
+  visibility: collapse;
+}
+
 .autocomplete-search-box {
   -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#autocomplete-search-box");
 }
 
 .autocomplete-search-engine {
   -moz-binding: url("chrome://navigator/content/urlbarBindings.xml#autocomplete-search-engine");
   -moz-box-align: center;
 }