-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Fix Maximum call stack size exception in computeLabelSizes #7883
Conversation
The same change could be made in the master branch, but I wasn't able to reproduce #7881. Something seems to have changed regarding the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should do this for v3 too.
Would be a good idea to take this into v3 as well |
I should be able to submit a PR for v3 soon. I figured I'd wait for this one to be approved first. |
thanks @silentmatt |
Calling Math.max with a large number of values was throwing an exception.
Tracking the current largest width and height as the widths and heights are
built up should be faster and avoids the exception.