Hi Ed,

the selection behavior has been changed. Before 4.0 the selection was set on 
mousedown. Now it will be set on "tap" event, which acts like "click".

So the selection should not be the tree item you want to drag. Use 
e.getTarget() to get the dragged item instead.

Gruß
Mustafa Sak

Applications & Integration

1&1 Internet AG
Ernst-Frey-Straße 10
DE-76135 Karlsruhe


-----Ursprüngliche Nachricht-----
Von: Ed Adasiewicz [mailto:edadasiew...@comcast.net] 
Gesendet: Dienstag, 17. Juni 2014 19:06
An: qooxdoo-devel@lists.sourceforge.net
Betreff: [qooxdoo-devel] qx.ui.tree.TreeFile getParent() question

I have an app which builds song playlists.  There are left and right pane 
containers with the left containing a qx.ui.tree.Tree() of all songs (titles 
within albums within artists) and the right containing a qx.ui.form.List(). 
Creating a playlist involves dragging and dropping song titles from the tree 
onto the list.  Starting with 4.0 I am having the following problem.  In the 
"droprequest" event listener on the tree I check to see if the CurrentAction is 
move, and if so I remove the selected TreeFile from its parent TreeFolder with 
code similar to:

function(e) {
var sel = this.__musicTree.getSelection()[0];
...
if ("move" === e.getCurrentAction()) {
  var parent = sel.getParent();
  parent.remove(sel);
}
}

In 3.5, parent referenced the qx.ui.tree.TreeFolder(), but in 4.0 parent is 
null.

Has something changed, was I doing something that I shouldn't have, is this a 
bug?




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/qx-ui-tree-TreeFile-getParent-question-tp7585876.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find 
What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. 
Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration 
http://p.sf.net/sfu/hpccsystems _______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to