Try to avoid really hiding menus b=127244 r=gavin a=mconnor

This commit is contained in:
neil@parkwaycc.co.uk 2007-09-17 15:12:51 -07:00
Родитель d3326fabe9
Коммит eabc5a74e9
2 изменённых файлов: 16 добавлений и 1 удалений

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

@ -267,6 +267,11 @@
</binding> </binding>
<binding id="menubar" extends="chrome://global/content/bindings/toolbar.xml#toolbar-base" display="xul:menubar"> <binding id="menubar" extends="chrome://global/content/bindings/toolbar.xml#toolbar-base" display="xul:menubar">
<content height="0">
<xul:hbox flex="1">
<children/>
</xul:hbox>
</content>
<implementation implements="nsIAccessibleProvider"> <implementation implements="nsIAccessibleProvider">
<property name="accessibleType" readonly="true"> <property name="accessibleType" readonly="true">
<getter> <getter>

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

@ -33,7 +33,6 @@
:: kinds of windows (not JUST browser windows) with toolbars :: kinds of windows (not JUST browser windows) with toolbars
::::: */ ::::: */
window[chromehidden~="menubar"] .chromeclass-menubar,
window[chromehidden~="directories"] .chromeclass-directories, window[chromehidden~="directories"] .chromeclass-directories,
window[chromehidden~="status"] .chromeclass-status, window[chromehidden~="status"] .chromeclass-status,
window[chromehidden~="extrachrome"] .chromeclass-extrachrome, window[chromehidden~="extrachrome"] .chromeclass-extrachrome,
@ -255,6 +254,17 @@ toolbarpaletteitem[place="palette"] {
menubar { menubar {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar"); -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
-moz-box-orient: vertical;
-moz-box-pack: end;
}
window[chromehidden~="menubar"] .chromeclass-menubar,
menubar[hidden="true"],
menubar[_moz_collapsed="true"],
menubar[collapsed="true"] {
min-height: 0%;
display: -moz-box;
visibility: visible;
} }
/********* menu ***********/ /********* menu ***********/