From da721a6b2a777ff39ca33e74d92a750c7b9943d8 Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Mon, 8 Jul 2024 21:24:09 -0700 Subject: [PATCH] compare to quantitativeColumns.length * 4 --- .../sanddance-explorer/src/dialogs/backgroundImageEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sanddance-explorer/src/dialogs/backgroundImageEditor.tsx b/packages/sanddance-explorer/src/dialogs/backgroundImageEditor.tsx index 006131b3..cd70c816 100644 --- a/packages/sanddance-explorer/src/dialogs/backgroundImageEditor.tsx +++ b/packages/sanddance-explorer/src/dialogs/backgroundImageEditor.tsx @@ -49,7 +49,7 @@ function _BackgroundImageEditor(_props: Props) { const xCol = quantitativeColumns.filter(c => c.name === insightColumns.x)[0]; const yCol = quantitativeColumns.filter(c => c.name === insightColumns.y)[0]; let backgroundImageColumnBounds: BackgroundImageColumnBound[]; - if (!explorer.imageHolder.backgroundImageColumnBounds.length) { + if (explorer.imageHolder.backgroundImageColumnBounds.length < quantitativeColumns.length * 4) { backgroundImageColumnBounds = getBackgroundImageColumnBounds(explorer.state.dataContent.columns); } else { backgroundImageColumnBounds = SandDance.VegaMorphCharts.util.clone(explorer.imageHolder.backgroundImageColumnBounds);