get-outer-height.js 679 B

12345678910111213
  1. import getStyle from './get-style';
  2. import getHeight from './get-height';
  3. export default function getOuterHeight(el, defaultValue) {
  4. var height = getHeight(el, defaultValue);
  5. var bTop = parseFloat(getStyle(el, 'borderTopWidth')) || 0;
  6. var pTop = parseFloat(getStyle(el, 'paddingTop')) || 0;
  7. var pBottom = parseFloat(getStyle(el, 'paddingBottom')) || 0;
  8. var bBottom = parseFloat(getStyle(el, 'borderBottomWidth')) || 0;
  9. var mTop = parseFloat(getStyle(el, 'marginTop')) || 0;
  10. var mBottom = parseFloat(getStyle(el, 'marginBottom')) || 0;
  11. return height + bTop + bBottom + pTop + pBottom + mTop + mBottom;
  12. }
  13. //# sourceMappingURL=get-outer-height.js.map