]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix Maximum call stack size exception in computeLabelSizes (#7883)
authorMatthew Crumley <email@matthewcrumley.com>
Sat, 17 Oct 2020 20:35:00 +0000 (16:35 -0400)
committerGitHub <noreply@github.com>
Sat, 17 Oct 2020 20:35:00 +0000 (23:35 +0300)
commit42ed5895b28fcfd10d43e1ce7a54bfa7e060998b
tree154b81daed1b042ff59111a74a88db5f4f740025
parent063b7dc075e87eeec6334808bcc90af165f7421e
Fix Maximum call stack size exception in computeLabelSizes (#7883)

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.
src/core/core.scale.js