Hello Darrel

I've been able to create a three column layout that allows drag and
drop of DIVs using Sortable. The three zones all scroll as needed
using overflow: scroll; overflow-x: hidden. I'm using prototype 1.5.1
and scriptaculous 1.7.1_beta3. So far I've had no problems in IE6,
IE7, FireFox.

// onLoad event
Event.observe( window, 'load', function() {
   Position.includeScrollOffsets = true;
   Sortable.create('toolZone', { containment: ['toolZone'], tag:
'div', dropOnEmpty: true, scroll: 'scrollingcontent' } );

    Sortable.create('dropZone1', { containment: ['dropZone1',
'dropZone2', 'toolZone'], tag: 'div', dropOnEmpty: true, scroll:
'scrollingcontent' } );

Sortable.create('dropZone2', { containment: ['dropZone1', 'dropZone2',
'toolZone'], tag: 'div', dropOnEmpty: true, scroll:
'scrollingcontent' } );

 }
);


On Sep 9, 12:07 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I'm trying to design an interface that includes two DIVs which I can
> drag and drop in between, and sort within.
>
> It works fine except when I allow the divs to be scrolled via overflow
> CSS settings.
>
> When this happens, and the div  is scrolled, the draggables no longer
> know where to go...they seem to be offset the distance of the div
> being scrolled (ie, they are relative to the content of the div that
> has scrolled off the top rather than height of the div itself).
>
> I assume that this isn't that abnormal of an interface need, and am
> hoping there's a common fix/workaround to this problem...anyone? ;o)
>
> -Darrel


--~--~---------~--~----~------------~-------~--~----~
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