fix the location of edge label and waypoint of node when the node is
dragged