setDimensions method

Gets or sets the viewport's dimensions in pixels.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

DiagnosticsViewport.setDimensions(diagonalInInches, widthInPx, heightInPx);

Parameters

  • diagonalInInches [in]
    Type: number

  • widthInPx [in]
    Type: number

  • heightInPx [in]
    Type: number

Return value

This method does not return a value.

See also

DiagnosticsViewport