Merge branch 'master' into extend-lad

This commit is contained in:
Henry Hsu
2021-09-16 16:41:26 -07:00
committed by GitHub

View File

@@ -1029,7 +1029,8 @@ export default {
this.$emit('statusUpdated', status);
},
handleWindowResize() {
if (this.offsetWidth !== this.$parent.$refs.plotWrapper.offsetWidth) {
if (this.$parent.$refs.plotWrapper
&& (this.offsetWidth !== this.$parent.$refs.plotWrapper.offsetWidth)) {
this.offsetWidth = this.$parent.$refs.plotWrapper.offsetWidth;
this.config.series.models.forEach(this.loadSeriesData, this);
}