Resize the blue box.

The box should be constrained by the minimum (red) and maximum (green) dimensions,
but instead snaps to the grid sizes just beyond these limits.

Grid: 20 x 20

Size: 100 x 100

Min: 65 x 65
Max: 135 x 135