English | Site Directory

gadgets.window

 SUMMARY     DETAIL

Static Class gadgets.window

Provides operations for getting information about and modifying the window the gadget is placed in.

Method Summary

<static> adjustHeight(opt_height)
Adjusts the gadget height
<static>  Object getViewportDimensions()
Detects the inner dimensions of a frame.
<static> setTitle(title)
Sets the gadget title.
 

Method Detail

adjustHeight

<static> 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.

getViewportDimensions

<static> Object 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.

setTitle

<static> setTitle(title)
    Sets the gadget title.
    Parameters:
      String title - The preferred title

Documentation generated by JsDoc Toolkit 1.3.3