From: SAiTO TOSHiKi Date: Fri, 16 Dec 2016 07:15:14 +0000 (+0800) Subject: Update core.scale.js X-Git-Tag: v2.5.0~1^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5d9a02d5bf399f9ec442ba718b5d9c21a54552c;p=thirdparty%2FChart.js.git Update core.scale.js Change sie to size. --- diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 57aefd1da..0ea82451c 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -696,7 +696,7 @@ module.exports = function(Chart) { if (isHorizontal) { scaleLabelX = me.left + ((me.right - me.left) / 2); // midpoint of the width - scaleLabelY = options.position === 'bottom' ? me.bottom - (scaleLabelFont.size / 2) : me.top + (scaleLabelFont.sie / 2); + scaleLabelY = options.position === 'bottom' ? me.bottom - (scaleLabelFont.size / 2) : me.top + (scaleLabelFont.size / 2); } else { var isLeft = options.position === 'left'; scaleLabelX = isLeft ? me.left + (scaleLabelFont.size / 2) : me.right - (scaleLabelFont.size / 2);