Static Class gadgets.views.ViewType
<!– Defined in views.js –>
SUMMARY DETAIL
Used by Views.
Field Detail
CANVAS
<static> object CANVAS
- A view where the gadget is displayed in a very large mode. It is typically the main content on the page. The viewer is not always the same as the owner.
HOME
<static> object HOME
- A view where the gadget is displayed in a small area usually on a page with other gadgets. Typically the viewer is the same as the owner.
PREVIEW
<static> object PREVIEW
- A demo view of the gadget. In this view the owner and viewer are not known.
PROFILE
<static> object PROFILE
- A view where the gadget is displayed in a small area usually on a page with other gadgets. The viewer is not always the same as the owner.
Static Class gadgets.window
<!– Defined in dynamic-height.js –>
SUMMARY DETAIL
Provides operations for getting information about and modifying the window the gadget is placed in.
Method Detail
adjustHeight
<static> adjustHeight(opt_height)
- Adjusts the gadget height. Make sure to include <Require feature=”dynamic-height” /> in <ModulePrefs><ModulePrefs/>;
- Parameters:
Number opt_height
– An optional preferred height in pixels; If not specified, will attempt to fit the gadget to its content. e.g adjustHeight(‘300px’) getViewportDimensions
<static> Object getViewportDimensions()
- Detects the inner dimensions of a frame. See http://www.quirksmode.org/dom/w3c_cssom.html for more information.
- Returns:
Object
An object with width and height properties (height of the content, not the height you see)