Occasionally, our tree diagram opens up very small and despite trying a few things we can’t find a perfect solution. The best we’ve come up with is to load the diagram initially with:
dblBowTieDiagram.autoScale = go.Diagram.Uniform
Then, after a second we set the autoScale to None and call zoomToFit:
setTimeout(function () {
$scope.$apply(function () {
dblBowTieDiagram.autoScale = go.Diagram.None;
dblBowTieDiagram.zoomToFit();
});
}, 1000);
This works most of the time but we sometimes still get a view like this:
We added a button to zoom back in and it works reliably but we would prefer not to need it!
Is this a known issue? Is there a workaround we haven’t found?