Reopening.

I though that I solved my problem and I started to use pure 0.8.3
version, but unfortunately it still exists. The testcase I provided
works in all cases. If I get time to experiment and to create new test
case, I will do.

The problem is with this:

  tree.setRootOpenClose(false);

If I set openclose to true, everything works, but if I set it to false
then items in hierarchy can't traverse to parent, they stop in
root->node#0 (or ->node#1) node.

The API I have is quite complicated, it's filebrowser widget and there
are some tricks to make it quick and to make lazy loading efficient
(sorting, binary searching, adding nodes to sorted list, etc).

Best regards
- Petr

2009/10/5 Petr Kobalíček <[email protected]>:
> 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