Fix for 129789, XBL form control selects need to leave space for scrollbars. r=bryner, sr=ben, a=brendan

git-svn-id: svn://10.0.0.236/trunk@116384 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2002-03-12 08:45:52 +00:00
parent 15a466345b
commit aeafe69b77
4 changed files with 12 additions and 6 deletions

View File

@@ -146,7 +146,7 @@
<children/>
</xul:outlinerchildren>
</xul:hbox>
<xul:scrollbar orient="vertical" class="outliner-scrollbar" collapsed="true"/>
<xul:scrollbar orient="vertical" class="select-scrollbar" disabled="true"/>
</xul:outlinerrows>
</content>
@@ -614,13 +614,13 @@
<handlers>
<handler event="underflow">
<![CDATA[
this.childNodes[1].collapsed = true;
this.childNodes[1].setAttribute("disabled", true);
event.preventBubble();
]]>
</handler>
<handler event="overflow">
<![CDATA[
this.childNodes[1].collapsed = false;
this.childNodes[1].removeAttribute("disabled");
event.preventBubble();
]]>
</handler>

View File

@@ -74,6 +74,9 @@ xul|*.select-outlinerbody {
display: -moz-box;
}
xul|*.select-scrollbar[disabled="true"] {
visibility: hidden;
}
input[type="checkbox"] {
-moz-binding: url("chrome://forms/content/checkbox.xml#checkbox");

View File

@@ -146,7 +146,7 @@
<children/>
</xul:outlinerchildren>
</xul:hbox>
<xul:scrollbar orient="vertical" class="outliner-scrollbar" collapsed="true"/>
<xul:scrollbar orient="vertical" class="select-scrollbar" disabled="true"/>
</xul:outlinerrows>
</content>
@@ -614,13 +614,13 @@
<handlers>
<handler event="underflow">
<![CDATA[
this.childNodes[1].collapsed = true;
this.childNodes[1].setAttribute("disabled", true);
event.preventBubble();
]]>
</handler>
<handler event="overflow">
<![CDATA[
this.childNodes[1].collapsed = false;
this.childNodes[1].removeAttribute("disabled");
event.preventBubble();
]]>
</handler>

View File

@@ -74,6 +74,9 @@ xul|*.select-outlinerbody {
display: -moz-box;
}
xul|*.select-scrollbar[disabled="true"] {
visibility: hidden;
}
input[type="checkbox"] {
-moz-binding: url("chrome://forms/content/checkbox.xml#checkbox");