maxSize(width_or_size, height)

Class: Panel. Method inherited from UIComponent.

Description:

Indicates the maximum size the component can be resized to.

Parameters:

Name Type Description

width_or_size

number | Size

Maximum width, or a Size formatted object as a sole parameter.

height

number

Maximum height of the component.

Returns:

If called without parameters, current maximum Size is returned or null if it wasn't previously set; otherwise returns this component instance for chaining.

Type: Size | this | null

Also See: