julien35-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-15 16:43 UTC
Scriptacolous Drag&Drop and overflow
Hi
I have a list with draggable and droppable elements which looks like
that :
<ul id="myList">
<li id="li_0" class="droppable"><span
id="emptySpan_0"
class="empty">droppable</span></li>
<li id="li_1" class="droppable"><span
id="emptySpan_1"
class="empty">droppable</span></li>
<li id="li_2" class="droppable"><span
id="emptySpan_2"
class="empty">droppable</span></li>
...
<li id="li_5"><div
id="drag_1"><span>some text</span><span>some
text 2</span></div></li>
<li id="li_6"><div
id="drag_2"><span>some text</span><span>some
text 2</span></div></li>
<li id="li_7"><div
id="drag_3"><span>some text</span><span>some
text 2</span></div></li>
</ul>
I want to put a overflow:auto CSS property on the <div> elements. I
tried to apply the script "overflow: scroll hack and draggable element
substitution"
(http://wiki.script.aculo.us/scriptaculous/show/EffectsTreasureChest).
But that doesn''t work. When I drag an element it''s like that
it''s under
the droppable elements. And when I stop to drag the element, it appears
over the droppable element and continues to be dragged when I move the
mouse.
Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---