]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixed vertical alignment in legend text (#3387)
authorJeff Carey <jeff.carey@gmail.com>
Tue, 8 Nov 2016 04:49:14 +0000 (20:49 -0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Fri, 18 Nov 2016 12:35:31 +0000 (07:35 -0500)
src/core/core.legend.js

index 87426571b9710b69cdd3aec45b141e3e5a513591..07349fd80b938347b5d798201e4ceb5c7f12cd90 100644 (file)
@@ -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++;
                                        }