Skip to main content

gadgets.window

Method​

gadgets.window.adjustHeight​

<static> adjustHeight(opt_height)

Adjusts the gadget height.

Parameter​
NameTypeDescription
opt_heightNumberA set height specified in pixels. If not specified, the height will be determined to fit the gadget to its content.
Return value​

None

Sample​
gadgets.window.adjustHeight(600);

gadgets.window.getViewportDimensions​

<static> getViewportDimensions()

Detects the inner dimensions of a frame.

Parameter​

None

Return value​
TypeDescription
ObjectAn object with width and height properties.
Sample​
var height = gadgets.window.getViewportDimensions();

gadgets.window.setTitle​

<static> setTitle(title)

This sets the title for a gadget. The title element for HTML documents is set in canvas view.

Parameter​
NameTypeDescription
titleStringA string to be set up as a title
Sample​
gadgets.window.setTitle("Bandit Nation");

Revision History​

  • 12/2010
    • Initial Release.