Added preventNegative to DimensionsUtil.setOffset;
Fixed inner width calculation in DimensionsUtil.