I have a similar problem when the arrows disappear when the containment div is hidden. This seems to be a bug in Raphael: https://github.com/DmitryBaranovskiy/raphael/pull/525 I'm just researching it and trying to figure out how to fix it ...
It seems that the problem is resolved if the unique markers. This is what I did to fix this: in raphael.js: Line 28:
var raphaelMarkerIdFixCount = 1;
Line 5938: replace this:
markerId = "raphael-marker-" + se + type + w + h;
with this:
markerId = "raphael-marker-" + se + type + w + h + raphaelMarkerIdFixCount; raphaelMarkerIdFixCount++;
Since now this means that each marker element is created every time, it can lead to memory problems if you draw a huge number of arrows - someone can come up with a better patch, this fix is definitely “quick and dirty”, but it’s worked for me.
source share