fix dot layout when children are deleted

closes PR 14718