fix(editor): add back missing appEnv.onresize
diff --git a/src/editor/sandbox/setup.js b/src/editor/sandbox/setup.js
index 099091d..effd87b 100644
--- a/src/editor/sandbox/setup.js
+++ b/src/editor/sandbox/setup.js
@@ -184,7 +184,10 @@
console.error('failed to show debug dirty rect', e);
}
}
- window.addEventListener('resize', chartInstance.resize);
+ window.addEventListener('resize', () => {
+ chartInstance.resize();
+ echarts.util.isFunction(appEnv.onresize) && appEnv.onresize();
+ });
wrapChartMethods(chartInstance);
}