When a component has ports, an interface symbol snaps to the nearest port on the near edge of the nearest component rather than directly to the edge of the component.