DLSupport.Viewport

Contains information regarding the current viewport.

This is used when we cannot use Prototype.

Summary
DLSupport.ViewportContains information regarding the current viewport.
Functions
getDimensionsRetrieve the size of the viewport.
getOffsetsRetrieve the offsets of the viewport from the top left corner.

Functions

getDimensions

getDimensions: function()

Retrieve the size of the viewport.

Returns

(object) An object with the following properties: height & width.

getOffsets

getOffsets: function()

Retrieve the offsets of the viewport from the top left corner.

Returns

(object) An object with the following properties: left & top.

getDimensions: function()
Retrieve the size of the viewport.
getOffsets: function()
Retrieve the offsets of the viewport from the top left corner.