MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / _getHeight

Method _getHeight

src/common/overlay/levelRenderer/Painter.js:712–720  ·  view source on GitHub ↗

* Method: _getHeight *

()

Source from the content-addressed store, hash-verified

710 *
711 */
712 _getHeight() {
713 var root = this.root;
714 var stl = root.currentStyle
715 || document.defaultView.getComputedStyle(root);
716
717 return ((root.clientHeight || parseInt(stl.height, 10))
718 - parseInt(stl.paddingTop, 10) // 请原谅我这比较粗暴
719 - parseInt(stl.paddingBottom, 10)).toFixed(0) - 0;
720 }
721
722
723 /**

Callers 6

constructorMethod · 0.95
resizeMethod · 0.95
echarts-en.min.jsFile · 0.80
echarts.min.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected