This issue comes up every month or so.

What you're experiencing is a "feature" with Sortables  
implementation, caused by the CSS spec. The draggable is a child of  
the list, which is scrollable.  Thus, the drabble must necessarily be  
bound to the same scroll region as its parent.  When you drag over to  
the new list, you're altering it parent to be the new list.  If you  
want to try and hack scriptaculous to get around this, the you'll  
need to make the draggable a child of some element higher in the  
hierarchy than the list.

There are some better ways to get the functionality you want w/o drag/ 
drop anyway. The simplest is to just use select boxes, with  
directional arrows in the middle (you can also have the list items  
respond to double-click events). If you're wanting something more  
fancy, do a styled list with arrows to the right of each list item.   
Then all the user has to do is click to move the item over, rather  
than drag.  It's significantly more efficient if order doesn't  
matter, especially when moving multiple items back and forth.



TAG

On May 1, 2007, at 3:07 PM, Matt wrote:

>
> Thanks Christope, but I do have both of the lists in a scrollable div.
> So basically I have two scrollable divs to drag stuff between. If you
> have to scroll one list to find what you want to drag, you can't see
> what you're dragging.
>
> I have an example of the problem I'm seeing:
> http://mrigali.googlepages.com/draggage.html
>
> To replicate, use the left div and scroll to the bottom. Choose an
> item and start to drag it to the right. Once you have moved over the
> div on the right, you can no longer see what you are dragging.
>
> If you don't scroll the left div, the drag is perfect.
>
> Any help would be awesome.
>
>
> On Apr 21, 3:59 am, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
>> Hey Matt,
>>
>> Have you tried leaving your <ul> styled normally, and putting it in a
>> scrollable <div>?  I know this approach usually works for my own  
>> Sortables.
>>
>> --
>> Christophe Porteneuve a.k.a. TDD
>> "[They] did not know it was impossible, so they did it." --Mark Twain
>> Email: [EMAIL PROTECTED]
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to