If you dig into the guts of the Draggable class, you''ll see that a
Draggable never removes the element from its parent, just effects its
position properties to move it inside the document. To get the item
such that its like cloning the object into a cart or something, use
the "onEnd" event to make a clone, stuff the clone where you want and
just reset the position properties of the original and it will fall
back into place. Which is really a hack of the class, i think this
sort of functionality is so common that it should be more
appropriately accommodated.
Cheers,
Matt
On Sep 28, 9:39 am, Tim Wisniewski
<tjw3...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have a draggable, and I place it on a droppable. How do I make the
> draggable go back to its original postion? Thanks.
>
> -Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---