Skip to content

Commit

Permalink
fix: control minimum width when scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Sep 9, 2023
1 parent 7b10b69 commit 05ddc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/core/draw/Draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 05ddc2d

Please sign in to comment.