]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix legend title drawing + update sample (#7060)
authorEvert Timberg <evert.timberg+github@gmail.com>
Thu, 6 Feb 2020 12:31:33 +0000 (07:31 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 12:31:33 +0000 (07:31 -0500)
samples/legend/title.html
src/plugins/plugin.legend.js

index 7f5e334ecea2bf927115f1f81b31fc2e25153520..56a6cc8252c511bf8a557b3cb4ff5a587b26a308 100644 (file)
@@ -2,7 +2,7 @@
 <html>
 
 <head>
-       <title>Legend Positions</title>
+       <title>Legend Title Positions</title>
        <script src="../../dist/Chart.min.js"></script>
        <script src="../utils.js"></script>
        <style>
index 4c0ebb4d36710f44462c949a51672f63761d4c91..6fb92379c7e0dd7e0b32222938607985f8e6d2c8 100644 (file)
@@ -513,7 +513,7 @@ class Legend extends Element {
                        return;
                }
 
-               const rtlHelper = getRtlAdapter(opts.rtl, me.left, me.minSize.width);
+               const rtlHelper = getRtlAdapter(opts.rtl, me.left, me._minSize.width);
                const ctx = me.ctx;
                const fontColor = valueOrDefault(titleOpts.fontColor, defaults.fontColor);
                const position = titleOpts.position;