Skip to content

setWidth()

Set the object's width.

If the object is a Display, you can set width to FULL to fill the screen's width.

Parameters

Once an object item has been created, you can use the following function:

item.setWidth(width)
Parameter Type Default Description
width int or float required The new width, in pixels.