Fixed a bug where links where not adjusted correctly at collapse/expand when modifying the position with dragging.