From d4c275ee6f1bde0b0333058471bffd297ac565a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torstein=20H=C3=B8nsi?= Date: Wed, 3 May 2023 15:07:38 +0200 Subject: [PATCH] Cmd+Z error --- ts/Core/Utilities.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ts/Core/Utilities.ts b/ts/Core/Utilities.ts index b0bc91b947a..2b07e5b2eea 100644 --- a/ts/Core/Utilities.ts +++ b/ts/Core/Utilities.ts @@ -1297,8 +1297,6 @@ function getStyle( prop: string, toInt?: boolean ): (number|string|undefined) { - const customGetStyle: typeof getStyle = (H as any).getStyle || getStyle; - let style: (number|string|undefined); // For width and height, return the actual inner pixel size (#4913) @@ -1324,8 +1322,8 @@ function getStyle( 0, // #8377 ( offsetWidth - - (customGetStyle(el, 'padding-left', true) || 0) - - (customGetStyle(el, 'padding-right', true) || 0) + (getStyle(el, 'padding-left', true) || 0) - + (getStyle(el, 'padding-right', true) || 0) ) ); } @@ -1335,8 +1333,8 @@ function getStyle( 0, // #8377 ( Math.min(el.offsetHeight, el.scrollHeight) - - (customGetStyle(el, 'padding-top', true) || 0) - - (customGetStyle(el, 'padding-bottom', true) || 0) + (getStyle(el, 'padding-top', true) || 0) - + (getStyle(el, 'padding-bottom', true) || 0) ) ); }