From 2b00146f6804522db7a573d45df2a18e6e742561 Mon Sep 17 00:00:00 2001 From: xiaoqufengdi <31072438+xiaoqufengdi@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:51:45 +0800 Subject: [PATCH] Problem Exporting Charts as Image It is wrong not to display a chart if it is not in the browser window display range. When we download the dashboard as a picture, we find that some charts are not displayed https://github.com/apache/superset/issues/28713 --- .../components/gridComponents/Row.jsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/superset-frontend/src/dashboard/components/gridComponents/Row.jsx b/superset-frontend/src/dashboard/components/gridComponents/Row.jsx index a22361e1421a9..3868c16eda14a 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Row.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Row.jsx @@ -169,16 +169,16 @@ class Row extends PureComponent { rootMargin: '100% 0px', }, ); - this.observerDisabler = new IntersectionObserver( - ([entry]) => { - if (!entry.isIntersecting && this.state.isInView) { - this.setState({ isInView: false }); - } - }, - { - rootMargin: '400% 0px', - }, - ); + // this.observerDisabler = new IntersectionObserver( + // ([entry]) => { + // if (!entry.isIntersecting && this.state.isInView) { + // this.setState({ isInView: false }); + // } + // }, + // { + // rootMargin: '400% 0px', + // }, + // ); const element = this.containerRef.current; if (element) { this.observerEnabler.observe(element);