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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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))%> On May 8, 9:01 am, "Charlie McElfresh" <cwmcelfr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Whoops, syntax was wrong -- it should be :constraint => false On May 8, 9:01 am, "Charlie McElfresh" <cwmcelfr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---