[Project_owners] Tree trouble

Martin Hassman met at penguin.cz
Fri Nov 21 19:13:06 EST 2003


On 19 Nov 2003 at 23:25, HJ wrote:

> I need to make a simple testcase to trigger a bug in getRangeCount()
> but I don't get the child row to line up with the container. Here's my
> XUL snip, what do we need to change to get this thing working? 
> 
> I always use RDF datasources and templates but that can not be used
> for this simple testcase. 

When I was creating my first tree - it was horrible ;-o
But now I can only look at the old source and copy & paste ;-)))))

Look at this:

<tree flex="1">
<treecols>
	<treecol id="something" flex="1" primary="true"/>
</treecols>
    <treechildren>
      <treeitem container="true" open="true">
        <treerow>
          <treecell label="Container"/>
        </treerow>
        <treechildren>
          <treeitem>
            <treerow>
              <treecell label="Test 1"/>
            </treerow>
          </treeitem>
          <treeitem>
            <treerow>
              <treecell label="Test 2"/>
            </treerow>
          </treeitem>
          <treeitem>
            <treerow>
              <treecell label="Test 3"/>
            </treerow>
          </treeitem>
        </treechildren>
      </treeitem>
    </treechildren>
</tree>


met - martin hassman
www.czilla.cz - site for Czech Mozilla users 

-- 
Martin Hassman
Jaky Internetovy prohlizec? Zkuste Mozillu http://www.czilla.cz/
Jabber: hassmanm(at)njs.netlab.cz, ICQ: #295399122



More information about the Project_owners mailing list