(name)
| 87 | const styles = this.styles |
| 88 | |
| 89 | const getHeight = (name) => { |
| 90 | const style = styles[name][styles[name].length - 1] |
| 91 | let h = 0 |
| 92 | ;['height', 'marginTop', 'marginBottom'].forEach((attrName) => { |
| 93 | if (typeof style[attrName] !== 'undefined') { |
| 94 | h += style[attrName] |
| 95 | } |
| 96 | }) |
| 97 | return h |
| 98 | } |
| 99 | |
| 100 | let height = 0 |
| 101 | if (props.title) height += getHeight('titleBox') |
no outgoing calls
no test coverage detected
searching dependent graphs…