Added a sizeToFit method for clamping to a width range.