Bug 984140 - UITour: Info panels with no image are missing a left margin. r=mattn

This commit is contained in:
Justin Dolske 2014-12-16 18:30:34 -08:00
Родитель 7f02b8f098
Коммит e02f93f315
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -1159,6 +1159,7 @@ this.UITour = {
let tooltipTitle = document.getElementById("UITourTooltipTitle");
let tooltipDesc = document.getElementById("UITourTooltipDescription");
let tooltipIcon = document.getElementById("UITourTooltipIcon");
let tooltipIconContainer = document.getElementById("UITourTooltipIconContainer");
let tooltipButtons = document.getElementById("UITourTooltipButtons");
if (tooltip.state == "showing" || tooltip.state == "open") {
@ -1168,7 +1169,7 @@ this.UITour = {
tooltipTitle.textContent = aTitle || "";
tooltipDesc.textContent = aDescription || "";
tooltipIcon.src = aIconURL || "";
tooltipIcon.hidden = !aIconURL;
tooltipIconContainer.hidden = !aIconURL;
while (tooltipButtons.firstChild)
tooltipButtons.firstChild.remove();