Namespace gadgets.window
Provides operations for getting information about and modifying the
window the gadget is placed in.
Defined in: gadgets.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
gadgets.window.adjustHeight(opt_height)
Adjusts the gadget height
|
| <static> |
gadgets.window.getViewportDimensions()
Detects the inner dimensions of a frame.
|
| <static> |
gadgets.window.setTitle(title)
Sets the gadget title.
|
Method Detail
<static>
gadgets.window.adjustHeight(opt_height)
Adjusts the gadget height
- Parameters:
- {Number} opt_height
- An optional preferred height in pixels. If not specified, will attempt to fit the gadget to its content.
<static>
{Object}
gadgets.window.getViewportDimensions()
Detects the inner dimensions of a frame.
See: http://www.quirksmode.org/viewport/compatibility.html for more
information.
- Returns:
- {Object} An object with width and height properties.
<static>
gadgets.window.setTitle(title)
Sets the gadget title.
- Parameters:
- {String} title
- The preferred title