Looks like Sortable supports this behavior out of the box. Maybe if
the documentation was up to date this would have been obvious. Zing!
Maybe I should update the documentation then, eh? :)

The key to making this work in a container with multiple columns is
creating the sortable on the container element, clearing out the
constraint option and then most importantly, supplying a containment
collection (child elements of your container that represent the
"columns").

Here is the Sortable#create call that works for me:

Sortable.create('column-container-element', {constraint:'',
containment:['main', 'sidebar'], ghosting:true});
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to