Set the maximum width and height values this Size component will allow.
Setting this will automatically adjust both the width
and height
properties to ensure they are within range.
Note that based on the aspect mode, and if this Size component has a parent set or not, the maximums set here can be exceed in some situations.
name | type | arguments | Default | description |
---|---|---|---|---|
width | number | <optional> | Number.MAX_VALUE |
The maximum allowed width of the Size component. |
height | number | <optional> | width |
The maximum allowed height of the Size component. If not given, it will use the |
This Size component instance.