Bug 633599 - App menu should be hidden instead of collapsed during startup [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2011-02-14 17:06:18 +01:00
parent 1561e13fbf
commit 441c1af174
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ var AppMenu = {
if (BrowserUI.activePanel || BrowserUI.isPanelVisible()) if (BrowserUI.activePanel || BrowserUI.isPanelVisible())
return; return;
this.panel.setAttribute("count", this.panel.childNodes.length); this.panel.setAttribute("count", this.panel.childNodes.length);
this.panel.collapsed = false; this.panel.hidden = false;
addEventListener("keypress", this, true); addEventListener("keypress", this, true);
@ -17,7 +17,7 @@ var AppMenu = {
}, },
hide: function hide() { hide: function hide() {
this.panel.collapsed = true; this.panel.hidden = true;
removeEventListener("keypress", this, true); removeEventListener("keypress", this, true);
@ -26,7 +26,7 @@ var AppMenu = {
}, },
toggle: function toggle() { toggle: function toggle() {
this.panel.collapsed ? this.show() : this.hide(); this.panel.hidden ? this.show() : this.hide();
}, },
handleEvent: function handleEvent(aEvent) { handleEvent: function handleEvent(aEvent) {

View File

@ -668,7 +668,7 @@
</vbox> </vbox>
</hbox> </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" <toolbarbutton class="appmenu-button"
label="&appMenu.siteOptions;" label="&appMenu.siteOptions;"
image="chrome://browser/skin/images/appmenu-site-hdpi.png" image="chrome://browser/skin/images/appmenu-site-hdpi.png"