Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Endless loop #305

Closed
eiser-dk opened this issue Sep 12, 2014 · 1 comment
Closed

Endless loop #305

eiser-dk opened this issue Sep 12, 2014 · 1 comment

Comments

@eiser-dk
Copy link

On line 83 in LineWrapper.js you will find this:

        while (w > this.spaceLeft) {
          w = this.wordWidth(word.slice(0, --l));
        }

I have seen this.spaceLeft with a negative value, resulting in an endless loop as w cannot be negative.
The workaround is to always define a width in options.

@devongovett
Copy link
Member

Fixed by #309.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants