Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(draw): close #515

alt1o7407349561d9
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<T, E> {
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