gadgets.window
Method
gadgets.window.adjustHeight
<static> adjustHeight(opt_height)
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.adjustHeight(600);
gadgets.window.getViewportDimensions
<static> getViewportDimensions()
Detects the inner dimensions of a frame.
Parameter
None
Return value
| Type | Description |
|---|---|
| Object | An 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
| Name | Type | Description |
|---|---|---|
| title | String | A string to be set up as a title |
Sample
gadgets.window.setTitle("Bandit Nation");
Revision History
- 12/2010
- Initial Release.