Hi All, On Mon, Jan 4, 2010 at 6:36 PM, lp1051 <[email protected]> wrote:
> > Hi T., > > ok, I reported it as bugs, for those who are interested: > > http://bugzilla.qooxdoo.org/show_bug.cgi?id=3297 > http://bugzilla.qooxdoo.org/show_bug.cgi?id=3298 > > (What I'm about to write may not be relevant to the thread, so if not please ignore! I also can't remember if the code was developed against 0.8, or 0.9. It works well against trunk) I use D&D on the tree as part of a production application, using this thread during my initial research on how to do it, and have had it working 100% reliably. In the drop action I have (where XXX has been substituted): var action = e.getCurrentAction (); this.info ('action: ' + action); // I haven't been able to find how to get the drop folder any // better than this var target = e.getOriginalTarget (); while (target && target.classname != "XXX.Tree" && target.classname != "qx.ui.tree.TreeFolder") { target = target.getLayoutParent (); } if (target && target.classname == "qx.ui.tree.TreeFolder") { var sources = e.getData ('XXX/node'); this.copy_or_move_nodes (action, sources, target); } I've not used addBefore or addAfter in copy_or_move_nodes, instead removing the node from the parent, and then doing an addAt to get the child into the right position. Like I say, ignore this if it's not really relevant, Cheers, Nick
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
