Skip to content

Commit 4daea2a

Browse files
committed
fix: TextLayout wrapHardBreaks
1 parent 55efa4a commit 4daea2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ImageScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ class TextLayout {
15661566
if (!['top', 'middle', 'bottom'].includes(this.horizontalAlign))
15671567
throw new RangeError('Invalid horizontalAlign');
15681568

1569-
this.wrapHardBreaks = wrapHardBreaks || true;
1569+
this.wrapHardBreaks = typeof wrapHardBreaks === 'undefined' ? true : wrapHardBreaks;
15701570
if (typeof this.wrapHardBreaks !== 'boolean')
15711571
throw new TypeError('Invalid wrapHardBreaks');
15721572
}

0 commit comments

Comments
 (0)