Bug 1233727 - Don't show found-matches label when it's empty [r=mikedeboer]

This commit is contained in:
Matt Brubeck 2016-01-06 14:07:17 -08:00
Родитель 4463f7dec1
Коммит 4c2c388cdd
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -829,13 +829,15 @@
let nodes = this.getElement("findbar-container").childNodes;
let wrapper = this.getElement("findbar-textbox-wrapper");
let foundMatches = this._foundMatches;
for (let node of nodes) {
if (node == wrapper)
if (node == wrapper || node == foundMatches)
continue;
node.hidden = showMinimalUI;
}
this.getElement("find-next").hidden =
this.getElement("find-previous").hidden = showMinimalUI;
foundMatches.hidden = showMinimalUI || !foundMatches.value;
this._updateCaseSensitivity();
if (showMinimalUI)