Merge pull request #28 from GeorgeShiZZZ/dev

解决一个文本过长时,换行会丢失一位的问退
This commit is contained in:
codetypes authored and GitHub committed 2024-08-12 14:16:08 +08:00
commit ba1145cb9f
1 file changed
+1
+1
View File
@@ -614,6 +614,7 @@ export const toBreakWord = (str: string, maxWidth: number, fontSize?: string) =>
width = maxWidth; width = maxWidth;
line++; line++;
chars.push("\n"); chars.push("\n");
i--;
} }
} }
return { return {