fix: word breaking when scaling the page #666

npr765
Hufe921 2 years ago
parent 67c63f856f
commit 2bd1f34c15

@ -1573,8 +1573,9 @@ export class Draw {
i i
) )
// 单词宽度大于行可用宽度,无需折行 // 单词宽度大于行可用宽度,无需折行
if (width <= availableWidth) { const wordWidth = width * scale
curRowWidth += width if (wordWidth <= availableWidth) {
curRowWidth += wordWidth
nextElement = endElement nextElement = endElement
} }
} }

Loading…
Cancel
Save