Added preventNegative to Box.setOffset.