shrinkable groupboxes if the caption is given class="shrinkable_groupbox". buggy...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Jan 2006 16:52:46 +0000 (16:52 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 20 Jan 2006 16:52:46 +0000 (16:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2763 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/evergreen/main/bindings.xml
Open-ILS/xul/staff_client/chrome/skin/evergreen/evergreen.css

index c1a457e..f2506b8 100644 (file)
@@ -5,38 +5,6 @@
    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:xbl="http://www.mozilla.org/xbl">
 
-       <binding id="groupbox-sizer" extends="chrome://global/content/bindings/groupbox.xml#groupbox">
-       </binding>
-
-<!--
-  <binding id="groupbox-base">
-    <resources>
-      <stylesheet src="chrome://global/skin/groupbox.css"/>
-    </resources>
-  </binding>
-
-  <binding id="groupbox" extends="chrome://global/content/bindings/groupbox.xml#groupbox-base">
-    <content>
-      <xul:hbox class="groupbox-title" align="center" pack="start">
-        <children includes="caption"/>
-      </xul:hbox>
-      <xul:box flex="1" class="groupbox-body" xbl:inherits="orient,align,pack">
-        <children/>
-      </xul:box>
-    </content>
-
-    <implementation implements="nsIAccessibleProvider">
-      <property name="accessible">
-        <getter>
-          <![CDATA[
-            var accService = Components.classes["@mozilla.org/accessibilityService;1"].getService(Components.interfaces.nsIAccessibilityService);
-            return accService.createXULGroupboxAccessible(this);
-          ]]>
-        </getter>
-      </property>
-    </implementation>
-  </binding>
-
   <binding id="caption" extends="chrome://global/content/bindings/general.xml#basetext">
     <resources>
       <stylesheet src="chrome://global/skin/groupbox.css"/>
     <content>
       <children>
         <xul:image class="caption-icon" xbl:inherits="src=image"/>
-        <xul:label class="caption-text" flex="1"
+        <xul:label class="caption-text" flex="1" onclick="var n = document.getAnonymousNodes(parentNode.parentNode)[1]; if (n.hidden) { n.hidden = false; } else { n.hidden = true; }"
                    xbl:inherits="default,value=label,crop,accesskey"/>
       </children>
     </content>
   </binding>
--->
 
 </bindings>
index eee8f84..ff1664f 100644 (file)
@@ -2,8 +2,7 @@
 @namespace html url("http://www.w3.org/TR/REC-html40"); 
 
 tabpanel { border: 2px groove black; }
-caption { font-weight: bold; }
-groupbox { -moz-binding: url('chrome://evergreen/content/main/bindings.xml#groupbox-sizer'); }
+.shrinkable_groupbox { font-weight: bold; -moz-binding: url('chrome://evergreen/content/main/bindings.xml#caption'); }
 
 .my_overflow { overflow: auto; }