Commit 96582a2c by 李伟康

提交代码

1 parent 10227936
......@@ -137,7 +137,7 @@ class Draw {
try {
textArr.map(e => {
newText += e
if (this.getTextWidth(newText) > width - fontX - this.getTextWidth('…') - fontSize) throw newText
if (this.getTextWidth(newText) > width - fontX - fontSize) throw newText
})
} catch (error) {
newText = `${error}…`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!