I use this code to change color of a node.
var nodeData = myDiagram.model.findNodeDataForKey(key);
myDiagram.model.setDataProperty(nodeData, “color”, color);
I’m using Jquery tabs and my html markup is this way:
When the current tab is ‘tabsEjecuciones-1’ there’s not problem, the node change the color, but when the current tab is ‘tabsEjecuciones-2’ the canvas inside the diagram resize it to its default (300 x 150).
In the console appears a message ‘Diagram div has a width or height of zero’ but I dont resizing anything, I’m just changing node color.
What Can I do to solve this? How can I change the color of a node without resizing the canvas element?