I have a diagram configured as follows
@bind-Nodes="@nodes"
@bind-Connectors="@connectors"
ConnectorCreating="@ConnectorCreating"
CollectionChanged="Clicked">
I can add nodes to the diagram programmatically using
Node diagramNode = new Node()
{
ID = id,
OffsetX = x,
OffsetY = y,
Width = 120,
Height = 70,
Shape = new FlowShape() { Type = shapes.Flow, Shape = shape },
Style = new ShapeStyle() { Fill = fillColor, StrokeColor = stroke },
Annotations = new DiagramObjectCollection() { annotation },
};
nodes.Add(diagramNode);
That all works fine. When I then drag the node, the diagram "shrinks" to fit the nodes instead of retaining the original height and width. Is there a way to override this resizing to retain the original height and width options?