mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-07 00:36:50 +01:00
Fix charts shinking in size on certain Zoom values in Chrome (#12097)
This commit is contained in:
@@ -268,8 +268,8 @@ describe('DOM helpers tests', function() {
|
||||
helpers.retinaScale(chart, devicePixelRatio, true);
|
||||
|
||||
var canvas = chart.canvas;
|
||||
expect(canvas.width).toBe(Math.floor(chartWidth * devicePixelRatio));
|
||||
expect(canvas.height).toBe(Math.floor(chartHeight * devicePixelRatio));
|
||||
expect(canvas.width).toBe(Math.round(chartWidth * devicePixelRatio));
|
||||
expect(canvas.height).toBe(Math.round(chartHeight * devicePixelRatio));
|
||||
|
||||
expect(chart.width).toBe(chartWidth);
|
||||
expect(chart.height).toBe(chartHeight);
|
||||
|
||||
Reference in New Issue
Block a user