DiviAreaItem.getSize()

DiviAreaItem.getSize()

Returns size details of the visible Area.

When the Area is not visible, this function returns 0 for all values.

Params

no Params

Returns

Returns a JS object with the following attributes:

  • width The Area width.
  • height The Area height.
  • contentWidth Width of the scrollable content inside the Area.
  • contentHeight Height of the scrollable content inside the Area.
  • wrapperWidth Width of the wrapper (Area parent).
  • wrapperHeight Height of the wrapper (Area parent).
  • windowWidth Inner width of the browser window.
  • windowHeight Inner height of the browser window.

All values are integers that represent an individual pixel-dimension.

Notes

No notes

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us