Bug 258864 : View > 'Full Screen' menu entry does not become ticked / checked when in full screen mode, patch by David Tenser (djst) <djst.mozilla@gmail.com>, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2005-08-20 21:38:36 +00:00
Родитель 859bfcad5f
Коммит fbbcd45d8e
2 изменённых файлов: 3 добавлений и 0 удалений

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

@ -303,6 +303,8 @@
<menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
<menuitem accesskey="&fullScreenCmd.accesskey;"
label="&fullScreenCmd.label;" key="key_fullScreen"
id="fullScreenItem"
type="checkbox"
command="View:FullScreen"/>
<menuseparator hidden="true" id="documentDirection-separator"/>
<menuitem hidden="true" id="documentDirection-swap"

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

@ -3071,6 +3071,7 @@ var FullScreen =
// show/hide all menubars, toolbars, and statusbars (except the full screen toolbar)
this.showXULChrome("toolbar", window.fullScreen);
this.showXULChrome("statusbar", window.fullScreen);
document.getElementById("fullScreenItem").setAttribute("checked", !window.fullScreen);
},
showXULChrome: function(aTag, aShow)