Hi,

I noticed a bug and would like to highlight it.
In the tree, if you do parent.addBefore(src, dest), the actually the new 
node src gets added AFTER dest and not before as desired.

The solution is to do:

parent.remove(src);
parent.addBefore(src, dest);

Now, my tree drag-drop is working almost fine (except last node case), 
which throws error and I am working on that and the indicator part.

Amit

Fritz Zaucker wrote:
> Hi Amit,
>
> On Tue, 24 Mar 2009, Amit Rana wrote:
>
>   
>>> 3) The for loop in the drop listener is probably not needed, as in a tree
>>>     only one Folder can be selected at a time, so sel.length is always 1. So
>>>     I guess this could be simplified a bit.
>>>
>>>
>>>       
>> Yeah... I changed it to orig.getParent().addBefore(sel[0], orig); and
>> its working fine. thnks
>>     
>
> You could probably also use
>
>       var sel = this.getSelectedItem();
>       orig.getParent().addBefore(sel, orig);
>
> in case of the tree.
>
> Cheers,
> Fritz
>
>   


-- 
Amit Rana 
________________________________________ 

SpagoBI Consultant 
Research & Innovation Division 
Engineering Ingegneria Informatica S.p.A. 
Strada 2, Palazzo D3 - 20090, 
Milanofiori Assago (Milan) - Italy 

Phone:  +39-02 5282 0462    
Mobile:  +39-327 611 5975 
www.eng.it            www.spagoworld.org 
________________________________________


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to