mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
Update this -> me with master
This commit is contained in:
commit
148c66fe95
@ -83,7 +83,7 @@ module.exports = function(Chart) {
|
||||
var newWidth = helpers.getMaximumWidth(canvas);
|
||||
var aspectRatio = chart.aspectRatio;
|
||||
var newHeight = (me.options.maintainAspectRatio && isNaN(aspectRatio) === false && isFinite(aspectRatio) && aspectRatio !== 0) ? newWidth / aspectRatio : helpers.getMaximumHeight(canvas);
|
||||
|
||||
|
||||
var sizeChanged = chart.width !== newWidth || chart.height !== newHeight;
|
||||
|
||||
if (!sizeChanged) {
|
||||
|
Loading…
Reference in New Issue
Block a user