INPUT /  OUTPUT /  LANGUAGE





onResize field

Code field

Code carried out when the size of the console changes.

Applies to...

The console tag instance.

Sample usage

Behaviour

A code field: holds code to be carried out each time the event happens. Add code after the tag is created with .push.

The console's width and height fields already hold the new size when the code runs.

Notes

Layouts using percentages, or tags stretched between edges with left/right, adjust automatically and don't need onResize.

See also