On Mon, Feb 1, 2010 at 05:43, Tom Schindl <tom.schi...@bestsolution.at>wrote:
> Am 31.01.10 21:38, schrieb Derrell Lipman:
>
> I think you the problem only shows up if you add a 2nd branch at the root.
>
> var root1 = dataModel.addBranch(null, "Root", true);
> var root2 = dataModel.addBranch(null, "Root2", true);
>
> Then you'll notice that the first node shows an open/close icon though
> it clearly doesn't has any children.
>
Ah, ok. Add this line to the program to fix the problem:
tree.setExcludeFirstLevelTreeLines(true);
Although it's not obvious when using the Modern theme, the open/close button
is part of the "tree lines" -- the vertical lines that indicate levels of
indentedness within the tree (which exist in the traditional theme but not
in the Modern theme). Most trees have a single root, but for those trees
with multiple roots like yours, you need to specify such using this
property. (I wonder if it might be appropriate at this point to change the
property name to allowMultipleRoots or some such thing? Without keeping the
old name and code, it would be a a non-backward-compatible change. Since
this has come up only once in the past 3 years, I think I won't bother
changing it. :-) At least now you have your answer.)
Derrell
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel