From 3592fc22320f942886f96d384db2997bac5b4879 Mon Sep 17 00:00:00 2001 From: Chris Ebert Date: Thu, 28 Jan 2021 11:15:10 +0100 Subject: [PATCH] fix: scope is not defined in getTextDimensions (#3078) --- src/modules/cell.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/cell.js b/src/modules/cell.js index 9c4bbbbd8..01e59f833 100644 --- a/src/modules/cell.js +++ b/src/modules/cell.js @@ -186,6 +186,7 @@ import { jsPDF } from "../jspdf.js"; var amountOfLines = 0; var height = 0; var tempWidth = 0; + var scope = this; if (!Array.isArray(text) && typeof text !== "string") { if (typeof text === "number") {