Skip to content
New issue

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

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

Already on GitHub? Sign in 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.

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

No branches or pull requests

2 participants