w2utils.getSize

Returns the size or absolute position of the element in px including padding, margin and border.
getSize(el, type)
el HTML Element, element to evaluate
type string, size type
First parameter el is the element to be inspected (it can also be a mQuery object). Second parameter type can be one of the following:
  • width - the width of the element
  • height - the height of the element

User Comments

comments powered by Disqus