sufy wrote:> HI Ruby,
>
> I am using http://script.aculo.us/ 1.7 version for drag and drop its
> works fine but when i add scroll bar to the div (where i have
> displayed draggable LI )once i move scroll bar drag and drop
does''t
> work
>
> Please help me on this !!
> If i dont use scroll bar it works fine but i have n number of items i
> can''t display without scrollbar...
>
I ran into this last night, actually. :P My solution had three parts:
1. Define the "overflow: auto" inline with the element
2. Specify an "onDrag" callback with
$(''scrollable'').style.overflow = ''''
3. Pass in a "reverteffect" with an afterFinish callback that sets
$(''scrollable'').style.overflow = ''auto'' (you
can copy the default
reverteffect defined in the source code and add your line there)
I wish there was another callback such as "afterRevert" to make step 3
easier.
Does anyone else have a simpler method?
- Ken Snyder
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---