From 87c59fea73cf55b63fca0d0049c351b2ceb468b8 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 6 Jul 2020 06:34:56 -0700 Subject: [PATCH] Fix padding for labels (#7572) --- src/core/core.scale.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.47.3