insetByPercent Method

Inset this ViewRect by a percentage of its current width.

insetByPercent(percent: number): void

note The ViewRect will become smaller (or larger, if percent is negative) by percent * width * 2 in each direction, since each side is moved by that distance.

see ViewRect.inset

Parameter Type Description
percent number The percentage of this ViewRect's width to inset in all directions.

Returns - void

Defined in

Last Updated: 20 June, 2023