Hi Petr,

I can't confirm this problem in trunk r20269. The alert box always 
displays the complete hierarchy from root to the selected node. Which 
revision are you using?


Regards,
Daniel

Petr Kobalíc(ek schrieb:
> Hi,
> 
> can anybody confirm that this code is broken in current SVN ? (it's
> for playground)
> 
> var doc = this.getRoot();
> 
> var tree = new qx.ui.tree.Tree();
> var root = new qx.ui.tree.TreeFolder("Root");
> 
> root.setOpen(false);
> tree.setRoot(root);
> tree.setRootOpenClose(false);
> tree.setSelection([root]);
> 
> var cur = root;
> for (var i = 0; i < 10; i++)
> {
>   var item = new qx.ui.tree.TreeFolder("Item #" + i);
>   cur.addAt(item, 0);
>   if (i & 1) cur = item;
> }
> 
> doc.add(tree, {edge: 0});
> 
> tree.addListener("changeSelection", function(ev) {
>   var selection = ev.getData();
>   if (!selection.length) return;
> 
>   var item = selection[0];
> 
>   // Traverse back
>   var path = [];
>   while (item)
>   {
>     path.push(item.getLabel());
>     item = item.getParent();
>   }
>   path.reverse();
>   alert(path.join("/"));
> }, this);
> 
> When I go deep to nodes the root node and first child is not displayed
> in alert(). This is my stripped testcase.
> 
> Cheers
> - Petr
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to