You need to redraw the jsPlumb objects when performing the zoom operation:
jsPlumb.repaintEverything();
I think you need to include the code above in the setZoom () function.
Example for resizing a window:
$( window ).resize(function() {
jsPlumb.repaintEverything();
});
source
share