Skip to content

Commit

Permalink
Cmd+Z error
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed May 4, 2023
1 parent 0901e38 commit d4c275e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ts/Core/Utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
)
);
}
Expand All @@ -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)
)
);
}
Expand Down

0 comments on commit d4c275e

Please sign in to comment.