]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Read Title font options from correct place (#7502)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Fri, 12 Jun 2020 21:58:09 +0000 (00:58 +0300)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 21:58:09 +0000 (17:58 -0400)
src/plugins/plugin.title.js

index 7ed3c573278b317aa217cb241322af83c4f3d035..38c1078ad6475b23e1779a3624a34ef1a3ddc618 100644 (file)
@@ -144,7 +144,7 @@ export class Title extends Element {
                        return;
                }
 
-               const fontOpts = toFont(opts);
+               const fontOpts = toFont(opts.font);
                const lineHeight = fontOpts.lineHeight;
                const offset = lineHeight / 2 + me._padding.top;
                let rotation = 0;