зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1233727 - Don't show found-matches label when it's empty [r=mikedeboer]
This commit is contained in:
Родитель
4463f7dec1
Коммит
4c2c388cdd
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче