<!DOCTYPE html><html> <head> <title>JS plumb test</title> <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="http://jsplumbtoolkit.com/js/dom.jsPlumb-1.6.2-min.js"></script> <style> #zone1 {height:300px;width:250px; position:absolute; overflow-y:scroll; border:1px solid red; } #zone2 {height:300px;width:250px; position:absolute; overflow-y:scroll; left:300px; border:1px solid red;} #forJsPlumb { height:300px; width:600px; overflow:hidden; position:absolute;pointer-events:none;} .window { background-color: #EEEEEF; border: 1px solid #346789; border-radius: 0.5em; box-shadow: 2px 2px 19px #AAAAAA; color: black; height: 5em; position: absolute; width: 5em; } </style> <script> jsPlumb.ready(function () { $('#zone2').scrollTop(100); jsPlumb.setContainer($("#forJsPlumb")); jsPlumb.connect({ source: 'container0', target: 'container1', anchors : ["Right", "Left"]}); }); </script> </head> <body > <div id="zone1"> <div class="window" style="left: 120px; top:100px;" id="container0"></div> </div> <div id="zone2"> <div class="window" style="left: 30px; top:150px;" id="container1"></div> <div class="window" style="left: 100px; top:600px;" id="container2"></div> </div> <div id="forJsPlumb"> </div> </body></html>
The only workaround i could find is to add an offset to the anchor
anchors : ["Right", [ 0, 0.5, 0, 1, 0, -$('.zone2').scrollTop() ]] Any help would be appreciated,
Best regards,