Bug 891056 (part 1) - Code cleanup for autocomplete CSS [r=rsilveira]

This commit is contained in:
Matt Brubeck 2013-09-05 17:40:17 -07:00
parent 15230bb10f
commit 4582b318ca
3 changed files with 5 additions and 13 deletions

View File

@ -485,7 +485,7 @@
</binding>
<binding id="urlbar-autocomplete">
<content orient="horizontal">
<content>
<xul:vbox id="results-vbox" anonid="results-container" flex="1">
<xul:label class="meta-section-title"
value="&autocompleteResultsHeader.label;"/>

View File

@ -592,10 +592,6 @@ var BrowserUI = {
this._adjustDOMforViewState(aData);
if (aData == "snapped") {
FlyoutPanelsUI.hide();
Elements.autocomplete.setAttribute("orient", "vertical");
}
else {
Elements.autocomplete.setAttribute("orient", "horizontal");
}
break;

View File

@ -214,18 +214,14 @@ documenttab[selected] .documenttab-selection {
padding-bottom: @toolbar_height@;
}
#urlbar-autocomplete[viewstate="snapped"],
#urlbar-autocomplete[viewstate="portrait"],
#start-container[viewstate="snapped"],
#start-container[viewstate="portrait"] {
-moz-box-orient: vertical;
}
/*Formatting for the limited horizontal space of snapped*/
#start-autocomplete[viewstate="snapped"] .richgrid-item-content {
-moz-box-orient: horizontal;
}
#start-container,
#start-autocomplete {
#start-container {
padding-left: 0;
padding-right: 0;
}