I also changed my code as follows:
jsPlumb.bind("ready", function(connection, e) { jsPlumb.addEndpoint('block-1', ['BottomCenter'], []); jsPlumb.addEndpoint('block-2', [], ['BottomCenter']); jsPlumb.draggable('block-1'); jsPlumb.draggable('block-2'); jsPlumb.connect({ source: "block-1", target: "block-2", connector: 'Straight' }); });
The code is NOT perfect. I donβt have time right now - sorry. But now when you drag the divs and then resize the window, everything is fine.
source share