зеркало из https://github.com/mozilla/pjs.git
Bug 366203. Only apply treebody binding to first treechildren child of tree element. r=neil,enn
--HG-- extra : rebase_source : e9e00ab6374b5628aa0892f9a1f3e0910e4e6d6e
This commit is contained in:
Родитель
934da11d00
Коммит
ea56763f97
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="setTimeout(boom, 500);">
|
||||
|
||||
<script>
|
||||
function boom()
|
||||
{
|
||||
tc1 = document.getElementById("tc1");
|
||||
tc1.parentNode.removeChild(tc1);
|
||||
}
|
||||
</script>
|
||||
|
||||
<tree rows="6">
|
||||
<treecols>
|
||||
<treecol id="firstname" label="First Name" primary="true" flex="3"/>
|
||||
<treecol id="lastname" label="Last Name" flex="7"/>
|
||||
</treecols>
|
||||
|
||||
<treechildren id="tc1">
|
||||
<treeitem container="true" open="true">
|
||||
<treerow>
|
||||
<treecell label="Foo"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
|
||||
<treechildren>
|
||||
<treeitem container="true" open="true">
|
||||
<treerow>
|
||||
<treecell label="Bar"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
</tree>
|
||||
|
||||
|
||||
</window>
|
||||
|
|
@ -24,6 +24,7 @@ load 346083-1.xul
|
|||
load 346281-1.xul
|
||||
load 360642-1.xul
|
||||
load 366112-1.xul
|
||||
load 366203-1.xul
|
||||
load 369942-1.xhtml
|
||||
load 374102-1.xul
|
||||
load 376137-1.html
|
||||
|
|
|
@ -551,7 +551,7 @@ treecol.treecol-image {
|
|||
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecol-image");
|
||||
}
|
||||
|
||||
tree > treechildren {
|
||||
tree > treechildren:first-of-type {
|
||||
display: -moz-box;
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#treebody");
|
||||
-moz-user-select: none;
|
||||
|
|
Загрузка…
Ссылка в новой задаче