Fix potential bug with non valid margin values
This commit is contained in:
parent
7790ff6dfa
commit
5acc57cf7f
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ export function RemoveMargin(
|
|||
top?: number,
|
||||
right?: number
|
||||
): { x: number, y: number, width: number, height: number } {
|
||||
left = left ?? 0;
|
||||
right = right ?? 0;
|
||||
bottom = bottom ?? 0;
|
||||
top = top ?? 0;
|
||||
x = RemoveXMargin(x, left);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue