microsoft/automatic-graph-layout

Nodes changing places between starts

NiklasVJM opened this issue · 1 comments

Hi!

I was using this tool, and tried to create this kind of small headers for my little diagram(using the SetNodeBoundary -method, but setting the drawingNode.Label.GeometryLabel.Width = 500 or so, to extend the node's area.

I set the new center point to them after using the SetNodeBoundary() -example. However, I found out, that after every restart, all of the nodes are shifting, and this causes the "header" node to not be in the same place every time despite giving it a new Point(x,y) coordinates.

Do you know why is this happening? Attached is a photo to illustrate this. There is one debugging restart between (1) and (2), and I have changed nothing between starts. Circle sizes are the same, but due to cropping, it looks a little smaller.
testThingy

Never mind! I found the problem, and that was me who forgot another method making "magic" at the background.