I am developing a diagram , I am taking care of the diagram nodes position manually in code.
I need the diagram to be fixed to the top left corner.
I do not want the diagram nodes changed their position.
of course still need to support vertical and horizontal scroll
how should I do that
$(go.Diagram, . . .,
{
initialContentAlignment: go.Spot.TopLeft,
allowMove: false
})
By setting Diagram.allowMove I’m assuming you do not want to allow your users to move nodes. But they still might copy them – other properties control that.
I also add this
contentAlignment = Spot.TopLeft;
now it works
thanks
Doing that means that the user will not be able to scroll.
maybe I added some more attributes but I can scroll