fix bug of missing one when line break
This commit is contained in:
1 parent
bd8f4b4ead
commit
d8eae8f96b
1 file changed
+1
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user