g.pie.sector.js
authorAlan <alan@roojs.com>
Wed, 10 May 2023 01:02:36 +0000 (09:02 +0800)
committerAlan <alan@roojs.com>
Wed, 10 May 2023 01:02:36 +0000 (09:02 +0800)
g.pie.sector.js

index d7426c8..4b891dd 100644 (file)
@@ -218,7 +218,7 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
 
             var ty = iy - legendFontSize / 10;
 
-            if(text.includes("\n")) {
+            if(text.indexOf("\n")> -1) {
                 var ty = iy - legendFontSize / 10 + legendFontSize / 2;
             }