]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
[2.9] FitBoxes recursion when dimensions are NaN (#7853)
authorAlessandro Menezes <alessandroasm@gmail.com>
Fri, 9 Oct 2020 14:45:13 +0000 (10:45 -0400)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 14:45:13 +0000 (10:45 -0400)
commit063b7dc075e87eeec6334808bcc90af165f7421e
tree1a06d2a6e6c1a3d262595385305df2d02d0a51b0
parent2493cb5a2f65ce5e5afc031eb067d3769f06a3e7
[2.9] FitBoxes recursion when dimensions are NaN (#7853)

* Infinite recursion when dimensions are NaN

Adding a verification on updateDims that handles a case when dimensions are both
NaN. This caused an infinite recursion on fitBoxes when calculating the layout
for a chart that is mounted on an element that is not yet in DOM.

Fixes #7761
src/core/core.layouts.js
test/specs/core.layouts.tests.js