[BUG] Retina scaling no longer working in 2.4.0 (master branch)

Testing out the latest using the master branch (since I needed a new feature) and now my charts are twice as big and blurry.

I believe it is related to this commit.

Expected Behavior

Using a width/height of 640×480, a canvas is created like so:

<canvas width="1280" height="960" style="display: block; width: 640px; height: 480px;"></canvas>

Current Behavior

With responsive set to false, the canvas is created as:

<canvas width="1280" height="960" style="display: block;"></canvas>

With responsive set to true, the canvas is created as:

<canvas width="2560" height="1920" style="display: block; width: 1280px; height: 960px;"></canvas>

Author: Fantashit

1 thought on “[BUG] Retina scaling no longer working in 2.4.0 (master branch)

  1. Yep, looks good now whether you’re using <canvas width="640" height="480"></canvas> or <canvas style="width: 640px; height: 480px"></canvas>.

    Thanks for the quick fix! 👍

Comments are closed.