From: Jeff Carey Date: Tue, 8 Nov 2016 04:49:14 +0000 (-0800) Subject: Fixed vertical alignment in legend text (#3387) X-Git-Tag: v2.5.0~1^2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd2e40ce119225078f7321f979cf099838c99c42;p=thirdparty%2FChart.js.git Fixed vertical alignment in legend text (#3387) --- diff --git a/src/core/core.legend.js b/src/core/core.legend.js index 87426571b..07349fd80 100644 --- a/src/core/core.legend.js +++ b/src/core/core.legend.js @@ -414,7 +414,7 @@ module.exports = function(Chart) { } } else if (y + itemHeight > me.bottom) { x = cursor.x = x + me.columnWidths[cursor.line] + labelOpts.padding; - y = cursor.y = me.top; + y = cursor.y = me.top + labelOpts.padding; cursor.line++; }