MCPcopy
hub / github.com/OscarGodson/EpicEditor / _outerHeight

Function _outerHeight

src/editor.js:101–110  ·  view source on GitHub ↗

* Gets an elements total height including it's borders and padding * @param {object} el The element to get the total width of * @returns {int}

(el)

Source from the content-addressed store, hash-verified

99 * @returns {int}
100 */
101 function _outerHeight(el) {
102 var b = parseInt(_getStyle(el, 'border-top-width'), 10) + parseInt(_getStyle(el, 'border-bottom-width'), 10)
103 , p = parseInt(_getStyle(el, 'padding-top'), 10) + parseInt(_getStyle(el, 'padding-bottom'), 10)
104 , w = parseInt(_getStyle(el, 'height'), 10)
105 , t;
106 // For IE in case no border is set and it defaults to "medium"
107 if (isNaN(b)) { b = 0; }
108 t = b + p + w;
109 return t;
110 }
111
112 /**
113 * Inserts a <link> tag specifically for CSS

Callers 1

editor.jsFile · 0.70

Calls 1

_getStyleFunction · 0.70

Tested by

no test coverage detected