@eclipse-scout/chart 22.0.0 → 22.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-scout/chart",
3
- "version": "22.0.0",
3
+ "version": "22.0.1",
4
4
  "description": "Eclipse Scout chart",
5
5
  "author": "BSI Business Systems Integration AG",
6
6
  "homepage": "https://www.eclipse.org/scout",
@@ -25,13 +25,13 @@
25
25
  "src"
26
26
  ],
27
27
  "devDependencies": {
28
- "@eclipse-scout/cli": "22.0.0",
28
+ "@eclipse-scout/cli": "22.0.1",
29
29
  "@eclipse-scout/releng": "^22.0.0",
30
30
  "jasmine-core": "3.10.1",
31
31
  "karma": "6.3.9"
32
32
  },
33
33
  "dependencies": {
34
- "@eclipse-scout/core": "22.0.0",
34
+ "@eclipse-scout/core": "22.0.1",
35
35
  "jquery": "3.6.0",
36
36
  "chart.js": "3.7.0",
37
37
  "chartjs-plugin-datalabels": "2.0.0"
@@ -986,7 +986,9 @@ export default class ChartJsRenderer extends AbstractChartRenderer {
986
986
  }
987
987
 
988
988
  let maxLabelPrefSize = 0;
989
- this._tooltip.$container.find('label').each((idx, elem) => maxLabelPrefSize = Math.max(maxLabelPrefSize, graphics.prefSize($(elem)).width));
989
+ this._tooltip.$container.find('label').each((idx, elem) => {
990
+ maxLabelPrefSize = Math.max(maxLabelPrefSize, graphics.prefSize($(elem)).width);
991
+ });
990
992
  if (maxLabelPrefSize > 0) {
991
993
  this._tooltip.$container
992
994
  .css('--chart-tooltip-label-width', Math.min(maxLabelPrefSize, 120) + 'px');