parent
dd8e465304
commit
477cce2ed6
@ -262,7 +262,7 @@ export const wrapText = (
|
|||||||
const currentWordWidth = getTextWidth(words[index], font);
|
const currentWordWidth = getTextWidth(words[index], font);
|
||||||
|
|
||||||
// Start breaking longer words exceeding max width
|
// Start breaking longer words exceeding max width
|
||||||
if (currentWordWidth > maxWidth) {
|
if (currentWordWidth >= maxWidth) {
|
||||||
// push current line since the current word exceeds the max width
|
// push current line since the current word exceeds the max width
|
||||||
// so will be appended in next line
|
// so will be appended in next line
|
||||||
if (currentLine) {
|
if (currentLine) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user