Hi Daniel,

I upgraded to latest trunk and it seems to be ok (also ok in 0.8.3).
Unfortunately I don't know the version before, but it's version that
still contains deprecated API. I'm now using pure 0.8.3 and everything
is ok.

I think this was false alarm :-)

Cheers
- Petr

2009/10/5 Daniel Wagner <[email protected]>:
> 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
>

------------------------------------------------------------------------------
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