Hi,
Short answer: not really.
Long answer:
script.aculo.us respects the DOM. So, if you have a draggable element
inside a container that has overflow:scroll set, it will not move the
element out of the container as this would require repositioning the
element outside of the container (which in turn can cause trouble
with things like CSS rules and so on so forth). It very quickly
becomes a non-trivial problem that can''t be solved in a general way
(IMHO). A possible way to do this is hooking into the Draggables with
Draggables.addObserver (note that documentation on how to do this is
not available at the moment) and "free" your draggables by moving
them around in the DOM.
Thomas
Am 10.08.2005 um 23:48 schrieb Bill Lynch:
> All,
>
> I''m creating a palette type UI where the user sees a div on the
right
> of the screen with various items they can drag to the center area. So
> far, I''m using the drag & drop calls and this works perfectly.
I''ve
> run into a problem now because I gave the div an overflow setting and
> fixed height so if the palette list gets long it won''t stretch out
the
> page:
>
> <div style="height:200px;overflow:scroll;">...</div>
>
> The problem I''m running in to is when I try to drag something out
of
> that div it remains in the div. Basically, the scrollbars kick in and
> force it inside of that div -- does that make sense?
>
> Is there a way to pop what I''m dragging out of its containing div?
>
> Thanks,
> --Bill
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>