ch.Viewport (Class)

Documentation updated on Mon Mar 12 2012 17:48:13 GMT-0300 (GMT-03:00), generated by JsDoc Toolkit 2.4.0

Overview

Viewport is a reference to position and size of the visible area of browser.

Summary

Visibility Name Description
<public>  
Bottom offset of the visible area.
<public>  
Element representing the visible area.
<public>  
Height of the visible area.
<public>  
Left offset of the visible area.
<public>  
Right offset of the visible area.
<public>  
top
Top offset of the visible area.
<public>  
Width of the visible area.
Visibility Name Description
<public>  
Updates left, top, right and bottom coordinates of the visible area, relative to the document.
<public>  
Updates left, top, right and bottom coordinates of the visible area, relative to the window.
<public>  
Updates width and height of the visible area and updates ch.viewport.width and ch.viewport.height

Classdetail

Properties detail

bottom (public, Number)

Bottom offset of the visible area.

element (public, Object)

Element representing the visible area.

height (public, Number)

Height of the visible area.

left (public, Number)

Left offset of the visible area.

Right offset of the visible area.

top (public, Number)

Top offset of the visible area.

width (public, Number)

Width of the visible area.

Methods detail

getOffset (public)

Updates left, top, right and bottom coordinates of the visible area, relative to the document.

Returns
  • Object

getPosition (public)

Updates left, top, right and bottom coordinates of the visible area, relative to the window.

Returns
  • Object

getSize (public)

Updates width and height of the visible area and updates ch.viewport.width and ch.viewport.height

Returns
  • Object