Nodes and links not redrawn properly after node sizes change


Some nodes in our diagrams can be quite large, as shown below:

To make things more manageable, I added an option to hide all the white rectangles in all of the blue nodes (a “compact” mode).

This is implemented by means of a toModel() binding and works well:


However, if I scroll all the way to the bottom of the diagram, then change the mode to show the blue nodes at full size and then slowly scroll back up, some nodes and links are not drawn properly:


If I keep scrolling up slowly and get closer to the top of the blue node, the drawing fixes itself:


Would you have any idea on how I could fix this?

FYI: I’m on goJS 2.0.4.


That is very surprising. Have you implemented any virtualization?

No, I’m using the default LayeredDigraphLayout:

	this._diagramOptions = {
		layout: $go(go.LayeredDigraphLayout, {
					direction: 90,
					layerSpacing: 35,
					columnSpacing: 30,
					isInitial: true,
					isOngoing: true
		allowCopy: false,
		"animationManager.isEnabled": false,

We’d like to take a closer look at this. Can you send us a reproducible sample that recreates the issue, ideally in one HTML file? You can send us email: gojs at our domain,

OK I sent you a test case, derived from your ERM sample.

Thank you! We will investigate as soon as we can.