Slavcho wrote on Nov 24
th, 2016 at 10:54am:
First thing we do in measureString is setting this.context.font as in the bugzilla report above, so it could be same problem. However if it works after some reloads, it could be related to the order in which scripts are executed, e.g. if your MyDiagramLink instance s created before the canvas is fully initialized. At what point are you calling that constructor?
Well it's your functions, it could be plenty of places where font is used, but I can't see those places.
I tried changing measureString with my calculations, but still I get drawing errors.
It gets called automatically (DiagramLink) when loading workflow xml, or when I draw Link.
But the same error persists even when I create empty workflow diagram.
Error when I open empty workflow:
NS_ERROR_FAILURE:
ScriptResource.axd:1
d.prototype.draw http://localhost/MyCurrent/ScriptResource.axd:1:59229
c.prototype.repaint http://localhost/MyCurrent/Scripts/MindFusion/MindFusion.Diagramming.js%20line%201%20%3E%20eval:1:344976
Function$createDelegate/< http://localhost/MyCurrent/ScriptResource.axd:47:16