fix(draw): close #515

This commit is contained in:
alt1o
2022-07-28 16:00:05 +08:00
parent cdb497e747
commit 7407349561

View File

@@ -102,7 +102,7 @@ export class EditorUtil extends TDShapeUtil<T, E> {
onResize.current = e => { onResize.current = e => {
const first = e[0]; const first = e[0];
const bounds = first.contentRect; const bounds = first.contentRect;
const realHeight = bounds.height / zoomLevel; const realHeight = bounds.height;
if ( if (
bounds.height !== 0 && bounds.height !== 0 &&
Math.abs(realHeight - height) > 1 Math.abs(realHeight - height) > 1