Skip to content

Commit

Permalink
Problem Exporting Charts as Image
Browse files Browse the repository at this point in the history
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

apache#28713
  • Loading branch information
xiaoqufengdi authored Jul 17, 2024
1 parent b399525 commit 2b00146
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions superset-frontend/src/dashboard/components/gridComponents/Row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b00146

Please sign in to comment.