I''ve found messing with the overflow property of a div limit the
dragging -
which I don''t like.
If you contain the items within a div that''s got
''overflow:auto'' set on it
you can''t drag outside the div.
I''m guessing overflow:hidden will work the same way.
On 4/25/06, Charlie <Charlie.cheung@usa.com>
wrote:>
> Suppose some elements created using scriptaculous, and now want to add
> drag&drop characteristic to them,but the draggable elements can be
> dragged with the scope of whole browser,how to limit the draggable area
> within some DIV,for example the div that the elements lie in.
> Thanks
>
> Charlie
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
seth at subimage interactive
http://www.subimage.com/sublog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060524/0885ed42/attachment.html