gadgets.window

Method

gadgets.window.adjustHeight

Adjusts the gadget height.

Parameter

Name

Type

Description

opt_height

Number

A 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.getViewportDimensions

Detects the inner dimensions of a frame.

Parameter

None

Return value

Type

Description

Object

An object with width and height properties.

Sample

gadgets.window.setTitle

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

Parameter

Name

Type

Description

title

String

A string to be set up as a title

Sample

Revision History

  • 12/2010
    • Initial Release.

PREVIOUS

gadgets.views

NEXT

mbga API