make menubar hiding work correctly in FF4
authorRobert Kaiser <robert@notebook.box.kairo.at>
Sun, 27 Mar 2011 19:02:31 +0000 (21:02 +0200)
committerRobert Kaiser <robert@notebook.box.kairo.at>
Sun, 27 Mar 2011 19:02:31 +0000 (21:02 +0200)
LCARStrek/browser/browser.css
LCARStrek/global/globalBindings.xml

index c8e72fa9ecd329df44755a3ade7472a9c9dabd94..862e52108303a8f77cc0f540c7b56fd76e763554 100644 (file)
@@ -52,6 +52,10 @@ toolbar {
   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar");
 }
 
+toolbar[type="menubar"][autohide="true"] {
+  -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-menubar-autohide");
+}
+
 menubar {
   -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar");
 }
index 04847c1d480560486f21a4fd49b5f895c9fcf8da..8ff632b6d24e2526fc63dbd3fc177f7a4cd0514f 100755 (executable)
     </content>
   </binding>
 
+  <binding id="toolbar-menubar-autohide" extends="chrome://global/content/bindings/toolbar.xml#toolbar-menubar-autohide">
+    <content>
+      <xul:hbox flex="1" class="toolbar-box">
+        <xul:vbox class="toolbar-startcap"/>
+        <xul:hbox flex="1" class="toolbar-holder" align="center"
+                  xbl:inherits="collapsed,last-toolbar,orient=tborient,align=tbalign,pack=tbpack">
+          <children/>
+        </xul:hbox>
+        <xul:vbox class="toolbar-endcap"/>
+      </xul:hbox>
+    </content>
+  </binding>
+
   <binding id="menubar" extends="chrome://global/content/bindings/toolbar.xml#menubar">
     <resources>
       <stylesheet src="chrome://global/skin/toolbar.css"/>