From 05ddc2db290e58a4ec0fb1b00ad5d64ce7f4cf3a Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Sat, 9 Sep 2023 20:38:52 +0800 Subject: [PATCH] fix: control minimum width when scaling --- src/editor/core/draw/Draw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index 3e39ba2..778ee3f 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1335,7 +1335,7 @@ export class Draw { // 超出行宽时截断 const rowRemainingWidth = availableWidth - curRow.width - metrics.width - const left = Math.min(rowRemainingWidth, extraWidth) + const left = Math.min(rowRemainingWidth, extraWidth) * scale rowElement.left = left curRow.width += left } else {