Fix a small full screen bug - we no longer have to hide the menubar since it's part of a toolbar now.

This commit is contained in:
blakeross%telocity.com 2003-07-06 01:21:30 +00:00
Родитель 5d1f8ce092
Коммит 4a343136f3
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -2262,7 +2262,6 @@ var FullScreen =
toggle: function()
{
// show/hide all menubars, toolbars, and statusbars (except the full screen toolbar)
this.showXULChrome("menubar", window.fullScreen);
this.showXULChrome("toolbar", window.fullScreen);
this.showXULChrome("statusbar", window.fullScreen);
},
@ -2304,6 +2303,7 @@ var FullScreen =
for (i = 0; i < controls.length; ++i)
controls[i].hidden = aShow;
// XXXBlake
var toolbox = document.getElementById("navigator-toolbox");
if (!aShow && gToolbarMode != "text") {
toolbox.setAttribute("mode", "icons");
@ -2313,7 +2313,6 @@ var FullScreen =
toolbox.setAttribute("mode", gToolbarMode);
toolbox.setAttribute("iconsize", gIconSize);
}
}
};