Bug 933926 - [Australis] Hide customization palette during transition phase. r=Unfocused

This commit is contained in:
Jared Wein 2014-01-03 14:57:22 -05:00
Родитель ad52d37795
Коммит c2c3c169fe
1 изменённых файлов: 15 добавлений и 5 удалений

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

@ -129,10 +129,13 @@ CustomizeMode.prototype = {
window.PanelUI.menuButton.open = true;
window.PanelUI.beginBatchUpdate();
// Hide the palette before starting the transition for increased perf.
this.visiblePalette.hidden = true;
// Move the mainView in the panel to the holder so that we can see it
// while customizing.
let panelHolder = document.getElementById("customization-panelHolder");
let mainView = window.PanelUI.mainView;
let panelHolder = document.getElementById("customization-panelHolder");
panelHolder.appendChild(mainView);
let customizeButton = document.getElementById("PanelUI-customize");
@ -191,6 +194,10 @@ CustomizeMode.prototype = {
window.PanelUI.endBatchUpdate();
this._customizing = true;
this._transitioning = false;
// Show the palette now that the transition has finished.
this.visiblePalette.hidden = false;
this.dispatchToolboxEvent("customizationready");
}.bind(this)).then(null, function(e) {
ERROR(e);
@ -214,12 +221,15 @@ CustomizeMode.prototype = {
this._removePanelCustomizationPlaceholders();
this._transitioning = true;
let window = this.window;
let document = this.document;
let documentElement = document.documentElement;
// Hide the palette before starting the transition for increased perf.
this.visiblePalette.hidden = true;
this._transitioning = true;
Task.spawn(function() {
yield this.depopulatePalette();
@ -541,9 +551,9 @@ CustomizeMode.prototype = {
aNode.removeAttribute("observes");
}
if (aNode.checked) {
if (aNode.getAttribute("checked") == "true") {
wrapper.setAttribute("itemchecked", "true");
aNode.checked = false;
aNode.removeAttribute("checked");
}
if (aNode.hasAttribute("id")) {