jsplumb / community-edition

The community edition of jsPlumb, versions 1.x - 6.x
https://jsplumbtoolkit.com
Other
224 stars 18 forks source link

Drag Containment does'not work as expected #51

Open MohammedAbdulMateen opened 6 years ago

MohammedAbdulMateen commented 6 years ago

I used the following snippet, but the area that should be contained is wrong, left side I am able to drag the element out of the container and where as on the right hand side there is left over area but the element isn't going there, I tried to use jquery ui draggable but the problem with that is the connections don't update if the elements are draggable themselves.

// https://jsplumbtoolkit.com/community/doc/dragging.html
jsPlumb.draggable("someElement", {
   containment:true
});

Please help, thanks in advance.

sporritt commented 6 years ago

can you provide a jsfiddle or something?

MohammedAbdulMateen commented 6 years ago

please find the jsfiddle here http://jsfiddle.net/pf2ar376/10/

abhirocks550 commented 5 years ago

please find the jsfiddle here http://jsfiddle.net/pf2ar376/10/

Any solution on above?