microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.35k stars 302 forks source link

Nodes changing places between starts #291

Closed NiklasVJM closed 3 years ago

NiklasVJM commented 3 years ago

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

NiklasVJM commented 3 years ago

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