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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.