]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix retina scale when display size is implicit 3551/head
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Fri, 11 Nov 2016 18:53:45 +0000 (19:53 +0100)
committerEvert Timberg <evert.timberg+github@gmail.com>
Fri, 11 Nov 2016 23:10:19 +0000 (18:10 -0500)
commit6b449a9e7c56d873edc28b3e2dcf976b2ea27404
tree23fcf7f67cf04e3451bc4b6586b762c018b68090
parentefced4780ce2697d0d44bf1e32a4e2efebaa18e2
Fix retina scale when display size is implicit

The retinaScale helper now enforces the display size to the correct values because if no style has been set on the canvas, the render size is used as display size, making the chart bigger (or smaller) when deviceAspectRatio is different of 1.
src/core/core.controller.js
src/core/core.helpers.js
test/core.controller.tests.js
test/mockContext.js