Bug 515995: shouldn't be possible to pan the autocomplete panel vertically when there are no results, r=gavin
authorVivien Nicolas <21@vingtetun.org>
Tue, 22 Sep 2009 15:37:17 -0400
changeset 65594 c1b634a77532c5dbcbb676c4150a25bf9bfd8e59
parent 65593 1364ebd566c65a61e690a9fa67267cce35144bc1
child 65595 7d538d1c4636a9d7aeddac8896cff21d2e8f0837
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs515995
Bug 515995: shouldn't be possible to pan the autocomplete panel vertically when there are no results, r=gavin
mobile/chrome/content/browser.css
--- a/mobile/chrome/content/browser.css
+++ b/mobile/chrome/content/browser.css
@@ -50,20 +50,25 @@ notification[type="geo"] {
 #popup_autocomplete {
   -moz-binding: url("chrome://browser/content/bindings.xml#popup_autocomplete");
 }
 
 .autocomplete-items > autocompleteresult {
   -moz-binding: url("chrome://browser/content/bindings.xml#popup_autocomplete_result");
 }
 
-autocompleteresult[value=""] {
+/* don't hide the first child, since we need it to position the 'No results' row */
+autocompleteresult[value=""]:first-child {
   visibility: hidden;
 }
 
+autocompleteresult[value=""]:not(:first-child) {
+  display: none;
+}
+
 placeitem {
   -moz-binding: url("chrome://browser/content/bindings.xml#place-item");
 }
 
 placeitem[type="folder"] {
   -moz-binding: url("chrome://browser/content/bindings.xml#place-folder");
 }