* 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)
| 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 |