How to connect draggable divs with jsPlumb?
Asked Answered
V

1

6

I would like to connect two draggable divs using jsPlumb. However when I use jsPlumb.Draggable function only the endpoints become draggable (not the div itself). Here is the fiddle of what I what I am trying.

http://jsfiddle.net/rishabhsagar/PsytV/36/

Viv answered 5/1, 2012 at 18:42 Comment(0)
H
7

This seem to be working:

div.operation {
   position: absolute;
}
Hogarth answered 17/2, 2012 at 12:58 Comment(3)
something so simple...was this in the documentation? You would think that jsPlumb.draggable() would check style.Pride
it does weirdly not: i use it with jquery UI and it seems to use its "draggable" event. it is unclear to me, why it does not auto-set "position" as UI does. I guess there is a reason!Jarrell
I have the same problem! However my div position is absolute? #30768389Corriecorriedale

© 2022 - 2024 — McMap. All rights reserved.