fix bug of missing one when line break

This commit is contained in:
George Shi committed 2024-08-12 11:45:32 +08:00
1 parent bd8f4b4ead
commit d8eae8f96b
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 {