outer-dimensions
v1.0.1
Published
Get the outer dimensions of an element, including margins
Downloads
2
Readme
outer-dimensions
Get the outer dimensions of an element, including margins
var outerDimensions = require('outer-dimentions');
var dimensions = outerDimensions(element);
dimensions is an object with width and height properties.
{
width: //offsetWidth + left and right margins,
height: //offsetHeight + top and bottom margins
}