Link not connected the node automatically

HI

My program generates the undesired picture when the document reloads the layout from xml layout file, the link is not connected to the parent node after immediate redraw. If user click on the green node(node 0) and move around, the link will be attached to green node. I used the SubGraphApp example as prototype of the green node. I notice that the SubGraphApp doesn’t have such behavior, but I can’t figure out why. Thanks

s

You need to figure out if

1) the ports are where they are supposed to be (on the node) and the links didn't get re-routed when they should have....
2) or if the ports have wandered away from the node and the links are connecting to the place they really think they should be.

Actually, the simple call to the UpdateRoute for each link solve this problem.