Correct w/h mixup in grid edge checks.