fix: word breaking when scaling the page #666
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user