Hey guys, I have two sortables, and I can drag elements between them. When I drag an element from list1 to list2, I can see in Firebug, that my draggable has been ''given'' a style of "z-index: 0; left: 0px; top: 0px; opacity: 0.999999;". Which is whatever and all, except that when I want to drag the item back to list1, I can''t, ''cos the item is never ''above'' the list, meaning I can drop it onto it. How and why does my draggable get this extra styling, when I drag it from list1 to list2? Anyone any ideas? Thanks Joerg P.S. Using script.aculo.us 1.7.1 beta3. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''m not convinced it''s a z-index issue. Can you post a working example? You can also try using the onUpdate callback or a Sortable observer (see a sample SortableObserver in dragdrop.js) to make whatever manipulations you need at the end of the drag. http://wiki.script.aculo.us/scriptaculous/show/Sortable.create TAG On Jul 29, 2007, at 6:34 AM, Joerg wrote:> > Hey guys, > > I have two sortables, and I can drag elements between them. When I > drag an element from list1 to list2, I can see in Firebug, that my > draggable has been ''given'' a style of "z-index: 0; left: 0px; top: > 0px; opacity: 0.999999;". Which is whatever and all, except that when > I want to drag the item back to list1, I can''t, ''cos the item is never > ''above'' the list, meaning I can drop it onto it. > > > How and why does my draggable get this extra styling, when I drag it > from list1 to list2? > > Anyone any ideas? > > Thanks > Joerg > > P.S. Using script.aculo.us 1.7.1 beta3.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yeah I think you might be right, as the example on http://wiki.script.aculo.us/scriptaculous/page/print/SortableListsDemo does the same ... drag an item to a different list and see how the inline style changes for that draggable. Anyway - let me look elsewhere for the problem. Thanks. On Jul 30, 4:53 pm, Tom Gregory <t...-PGZyUNKar/Q@public.gmane.org> wrote:> I''m not convinced it''s a z-index issue. Can you post a working example? > > You can also try using the onUpdate callback or a Sortable observer > (see a sample SortableObserver in dragdrop.js) to make whatever > manipulations you need at the end of the drag.http://wiki.script.aculo.us/scriptaculous/show/Sortable.create > > TAG > > On Jul 29, 2007, at 6:34 AM, Joerg wrote: > > > > > > > > > Hey guys, > > > I have two sortables, and I can drag elements between them. When I > > drag an element from list1 to list2, I can see in Firebug, that my > > draggable has been ''given'' a style of "z-index: 0; left: 0px; top: > > 0px; opacity: 0.999999;". Which is whatever and all, except that when > > I want to drag the item back to list1, I can''t, ''cos the item is never > > ''above'' the list, meaning I can drop it onto it. > > > How and why does my draggable get this extra styling, when I drag it > > from list1 to list2? > > > Anyone any ideas? > > > Thanks > > Joerg > > > P.S. Using script.aculo.us 1.7.1 beta3.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I was just being a chop, and had set up my containment with misspelt id names. Joerg On Jul 30, 6:13 pm, Joerg <senor.j.on...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yeah I think you might be right, as the example onhttp://wiki.script.aculo.us/scriptaculous/page/print/SortableListsDemo > does the same ... drag an item to a different list and see how the > inline style changes for that draggable. >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---