From a918aaa2116554bcd9943ad794e7529fdbe5eb87 Mon Sep 17 00:00:00 2001 From: Stanislav Fifik Date: Thu, 30 Jul 2020 14:16:02 +0200 Subject: [PATCH] :bug: emptyspace correcting width height --- src/nodes/Canvas2d/EmptySpace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodes/Canvas2d/EmptySpace.ts b/src/nodes/Canvas2d/EmptySpace.ts index 68bce41..c7cfbcc 100644 --- a/src/nodes/Canvas2d/EmptySpace.ts +++ b/src/nodes/Canvas2d/EmptySpace.ts @@ -68,8 +68,8 @@ export default class EmptySpace extends Canvas2d this.out.right.value = right; this.out.bottom.value = bottom; this.out.left.value = left; - this.out.w.value = right - left; - this.out.h.value = bottom - top; + this.out.w.value = right - left + 1; + this.out.h.value = bottom - top + 1; return canvas; } } \ No newline at end of file