$dimensions->fitHeight()
Recalculates the width and height to fit the given height
Parameters
Name | Type | Default | Description |
---|---|---|---|
$fit | int |
null |
the max height |
$force | bool |
false |
If true, the dimensions will be upscaled to fit the box if smaller |
Return type
This method does not modify the existing $dimensions
object but returns a new object with the changes applied. Learn more →