Keep boxes not in the tree out of the grid.