Container Div and Dragging

211 views
Skip to first unread message

Brian McGinity

unread,
Mar 2, 2012, 1:33:36 PM3/2/12
to jsPlumb

I am working with jsPlumb and am wondering if it’s possible to
dynamically change the width and height of the containing div after
drag.

To illustrate, here’s a jsFiddle: http://jsfiddle.net/dZX4q/10/

If “window three” is dragged outside of the blue container div, what
is the best way to resize the blue div so that “window three” sits
inside?


Simon Porritt

unread,
Mar 2, 2012, 4:44:33 PM3/2/12
to jsp...@googlegroups.com
Probably just put a "stop" callback in your drop options:

http://jsfiddle.net/dZX4q/12/

Brian McGinity

unread,
Mar 5, 2012, 12:37:03 PM3/5/12
to jsPlumb
This works great. Thank you.
Reply all
Reply to author
Forward
0 new messages