function getWidthHeight(element, property) {
    return element.getBoundingClientRect()[property] + augmentDimension(element, property, true) + "px";
}
Get the width or height of an element, pulled out as it can be used when the
in two locations so don't want to repeat it.