From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 6 Jul 2020 13:34:56 +0000 (-0700) Subject: Fix padding for labels (#7572) X-Git-Tag: v3.0.0-beta.2~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87c59fea73cf55b63fca0d0049c351b2ceb468b8;p=thirdparty%2FChart.js.git Fix padding for labels (#7572) --- diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 898413a48..1212f187b 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -779,8 +779,8 @@ export default class Scale extends Element { minSize.width = Math.min(me.maxWidth, minSize.width + labelWidth); - me.paddingTop = firstLabelSize.height / 2; - me.paddingBottom = lastLabelSize.height / 2; + me.paddingTop = lastLabelSize.height / 2; + me.paddingBottom = firstLabelSize.height / 2; } }