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

Function resizeCharts

examples/js/example.js:142–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140
141//chart宽高自适应
142function resizeCharts() {
143 var charts = $("#charts-list .chart .chart-thumb");
144 if (charts[0] && charts[0].offsetWidth) {
145 charts.height(charts[0].offsetWidth * 0.8);
146 } else {
147 charts.height(260 * 0.8);
148 }
149 window.onresize = function () {
150 resizeCharts();
151 }
152}
153
154//根据url滚动到页面相应的位置
155function scroll() {

Callers 1

initPageFunction · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected