dimensions::fitHeight($fit, $force = false)

Recalculates the width and height to fit the given height

  • $height (int)
    the max height
  • $force (boolean)
    If true, the dimensions will be upscaled to fit the height if smaller
  • return (object)
    returns this object with recalculated dimensions