Skip to content

Commit 657eb06

Browse files
committed
[FIX] Chart: Fix flicker when copying chart as image
When copying a chart as an image, we create a new div with a canvas to draw the image inside of it. However, the said div breaks the layout of the spreadsheet during its short existence span. Task: 4725067
1 parent a845ecf commit 657eb06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/helpers/figures/charts/chart_ui_common.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export async function chartToImageFile(
6868
const div = document.createElement("div");
6969
div.style.width = `${figure.width}px`;
7070
div.style.height = `${figure.height}px`;
71+
div.style.position = "fixed";
7172
const canvas = document.createElement("canvas");
7273
div.append(canvas);
7374
canvas.setAttribute("width", figure.width.toString());

0 commit comments

Comments
 (0)