ssCore.Browser.setAnchors

Set anchors to link the edges of the browser window to the edges of the player window for automatic resizing of the browser window that matches the player window's client area.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

top - Distance in pixels that the top edge of the browser should maintain from the top edge of the player window's client area.

left - Distance in pixels that the left edge of the browser should maintain from the left edge of the player window's client area.

bottom - Distance in pixels that the bottom edge of the browser should maintain from the bottom edge of the player window's client area.

right - Distance in pixels that the right edge of the browser should maintain from the right edge of the player window's client area.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Browser.setAnchors( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Browser.setAnchors( paramsObject );


Notes:

None.


Examples:

The following example will cause the embedded browser to resize automatically so that there remains 10 pixels between it and the edge of the application window.

ssCore.Browser.setAnchors({top:10, left:10, bottom:10, right:10});