When you drag the box outside the green line, the box will automatically adsorb to the boundary