Adjusted the shifting box method to redraw any path intersecting the parent box.