ch.Viewport (Class)
Documentation updated on Fri May 18 2012 12:47:11 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.
- Constructor name: ch.Viewport()
- View source on GitHub.
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 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> |
getSize()
|
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 (public, Number)
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