Now, I am also using angular-ui tabs (angularjs), and implementing the diagram.delayInitialization feature somewhat similar to the jquery ui tabs example in the gojs documentation.
Any idea why this might be happening only once in a while?
In such cases was there a call to Diagram.requestUpdateafter the HTML DIV element that is hosting the GoJS Diagram got the correct (non-zero, non-narrow) width and height?
The call to initialize the palaette is when the angular ui tab is selected.
After selection, if I wrap the call to initialize the palette inside an angular $timeout with a period of 100ms, seems to be OK. If maybe 30ms or less for the timeout (or no timeout), results are mixed. I am going to go with the timeout of 100ms.
But it should be clear that we still do not understand the cause of the problem. That’s why I asked about whether or not there was a call to Diagram.requestUpdate after the HTML DIV gets the correct size and before the layout is performed assuming the wrong viewport size.