From 7407349561d9d3baa85bd1502d4ea2b04c26c59c Mon Sep 17 00:00:00 2001 From: alt1o Date: Thu, 28 Jul 2022 16:00:05 +0800 Subject: [PATCH] fix(draw): close #515 --- libs/components/board-shapes/src/editor-util/EditorUtil.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/components/board-shapes/src/editor-util/EditorUtil.tsx b/libs/components/board-shapes/src/editor-util/EditorUtil.tsx index 5d5d15c1a9..237224fe51 100644 --- a/libs/components/board-shapes/src/editor-util/EditorUtil.tsx +++ b/libs/components/board-shapes/src/editor-util/EditorUtil.tsx @@ -102,7 +102,7 @@ export class EditorUtil extends TDShapeUtil { onResize.current = e => { const first = e[0]; const bounds = first.contentRect; - const realHeight = bounds.height / zoomLevel; + const realHeight = bounds.height; if ( bounds.height !== 0 && Math.abs(realHeight - height) > 1