Bug 949380 - [Australis] Add @hidden=true initially to UITour panels. r=Unfocused

This commit is contained in:
Matthew Noorenberghe 2013-12-13 23:54:04 +13:00
Родитель 1669b93c8b
Коммит 25fd0f7394
2 изменённых файлов: 7 добавлений и 5 удалений

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

@ -197,6 +197,7 @@
<!-- UI tour experience --> <!-- UI tour experience -->
<panel id="UITourTooltip" <panel id="UITourTooltip"
type="arrow" type="arrow"
hidden="true"
noautofocus="true" noautofocus="true"
noautohide="true" noautohide="true"
align="start" align="start"
@ -206,6 +207,7 @@
<description id="UITourTooltipDescription" flex="1"/> <description id="UITourTooltipDescription" flex="1"/>
</panel> </panel>
<panel id="UITourHighlightContainer" <panel id="UITourHighlightContainer"
hidden="true"
noautofocus="true" noautofocus="true"
noautohide="true" noautohide="true"
consumeoutsideclicks="false"> consumeoutsideclicks="false">

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

@ -464,6 +464,7 @@ this.UITour = {
effect = this.highlightEffects[randomEffect]; effect = this.highlightEffects[randomEffect];
} }
highlighter.setAttribute("active", effect); highlighter.setAttribute("active", effect);
highlighter.parentElement.hidden = false;
let targetRect = aTargetEl.getBoundingClientRect(); let targetRect = aTargetEl.getBoundingClientRect();
@ -514,16 +515,15 @@ this.UITour = {
let tooltipTitle = document.getElementById("UITourTooltipTitle"); let tooltipTitle = document.getElementById("UITourTooltipTitle");
let tooltipDesc = document.getElementById("UITourTooltipDescription"); let tooltipDesc = document.getElementById("UITourTooltipDescription");
tooltip.hidePopup(); if (tooltip.state == "open") {
tooltip.hidePopup();
}
tooltipTitle.textContent = aTitle; tooltipTitle.textContent = aTitle;
tooltipDesc.textContent = aDescription; tooltipDesc.textContent = aDescription;
tooltip.hidden = false;
let alignment = "bottomcenter topright"; let alignment = "bottomcenter topright";
if (tooltip.state == "open") {
tooltip.hidePopup();
}
tooltip.openPopup(aAnchorEl, alignment); tooltip.openPopup(aAnchorEl, alignment);
} }