1.0.1 • Published 9 years ago

outer-dimensions v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

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
}