Forum: Ruby on Rails help with sortable_element

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Charlie McElfresh (Guest)
on 2007-05-08 20:02
(Received via mailing list)

I made a sortable list that works fine.  It does what I want -- it
and the order of the list is updated in the database.  When you drag an
element up the window, it scrolls.  It's draggable by the header.

However, I also want elements of that list to be draggable outside the
sorting container.  I can drag vertically outside the sorting container,
I cannot drag horizontally.  Can anyone point me in the right direction?

charlie (Guest)
on 2007-05-08 20:40
(Received via mailing list)
One more thing -- here is my code:

<%= sortable_element('list', :tag => "div", :handle =>
"header", :constrain => 'false', :scroll => :window,:url => { :action
=> "sort_by_position" , :id => @elements_to_show },:complete =>
visual_effect(:highlight, element_id = false))%>
charlie (Guest)
on 2007-05-08 21:16
(Received via mailing list)
Whoops, syntax was wrong -- it should be

:constraint => false
This topic is locked and can not be replied to.