Forum: Ruby on Rails help with sortable_element

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A3865ecdc7a869c4c21d040fef9b0927?d=identicon&s=25 Charlie McElfresh (Guest)
on 2007-05-08 18:02
(Received via mailing list)
Hi,

I made a sortable list that works fine.  It does what I want -- it
sorts,
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,
but
I cannot drag horizontally.  Can anyone point me in the right direction?

Charlie
A3865ecdc7a869c4c21d040fef9b0927?d=identicon&s=25 charlie (Guest)
on 2007-05-08 18: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))%>
A3865ecdc7a869c4c21d040fef9b0927?d=identicon&s=25 charlie (Guest)
on 2007-05-08 19:16
(Received via mailing list)
Whoops, syntax was wrong -- it should be

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