Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Fix wordWrap: max-width instead of width for HTML element
Browse files Browse the repository at this point in the history
Closes #17
  • Loading branch information
bigtimebuddy committed Nov 4, 2022
1 parent b7dd819 commit 6744080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class HTMLText extends Sprite
if (style.wordWrap)
{
css += `word-wrap:${style.breakWords ? 'break-all' : 'break-word'};`;
css += `width:${style.wordWrapWidth}px;`;
css += `max-width:${style.wordWrapWidth}px;`;
}

if (style.strokeThickness)
Expand Down

0 comments on commit 6744080

Please sign in to comment.