1.0.1 • Published 9 years ago
outer-dimensions v1.0.1
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
}