зеркало из https://github.com/mozilla/gecko-dev.git
Bug 633599 - App menu should be hidden instead of collapsed during startup [r=mfinkle]
This commit is contained in:
Родитель
1d417c8579
Коммит
06facc0a2b
|
@ -8,7 +8,7 @@ var AppMenu = {
|
|||
if (BrowserUI.activePanel || BrowserUI.isPanelVisible())
|
||||
return;
|
||||
this.panel.setAttribute("count", this.panel.childNodes.length);
|
||||
this.panel.collapsed = false;
|
||||
this.panel.hidden = false;
|
||||
|
||||
addEventListener("keypress", this, true);
|
||||
|
||||
|
@ -17,7 +17,7 @@ var AppMenu = {
|
|||
},
|
||||
|
||||
hide: function hide() {
|
||||
this.panel.collapsed = true;
|
||||
this.panel.hidden = true;
|
||||
|
||||
removeEventListener("keypress", this, true);
|
||||
|
||||
|
@ -26,7 +26,7 @@ var AppMenu = {
|
|||
},
|
||||
|
||||
toggle: function toggle() {
|
||||
this.panel.collapsed ? this.show() : this.hide();
|
||||
this.panel.hidden ? this.show() : this.hide();
|
||||
},
|
||||
|
||||
handleEvent: function handleEvent(aEvent) {
|
||||
|
|
|
@ -668,7 +668,7 @@
|
|||
</vbox>
|
||||
</hbox>
|
||||
|
||||
<hbox id="appmenu" bottom="0" collapsed="true" align="stretch" oncommand="AppMenu.hide();">
|
||||
<hbox id="appmenu" bottom="0" hidden="true" align="stretch" oncommand="AppMenu.hide();">
|
||||
<toolbarbutton class="appmenu-button"
|
||||
label="&appMenu.siteOptions;"
|
||||
image="chrome://browser/skin/images/appmenu-site-hdpi.png"
|
||||
|
|
Загрузка…
Ссылка в новой задаче