dimensions::fitHeight
Recalculates the width and height to fit the given height
dimensions::fitHeight($fit, $force = false)
Parameters
- $height (int)
- the max height
- $force (boolean)
- If true, the dimensions will be upscaled to fit the height if smaller
Return values
- object
- returns this object with recalculated dimensions