About Pi Downloads Documentation Plugins Developer Forum Issues

pi.util.GetViewport

Summary

Returns size of available space on the screen.

Syntax

pi.util.GetViewport();

Usage Example

>>> pi.util.getViewport();
{ width:1680, height:848 }