@eclipse-scout/chart 22.0.1 → 22.0.11

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.
@@ -2196,8 +2196,12 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
2196
2196
 
2197
2197
  this._tooltip.$container.css('pointer-events', 'none');
2198
2198
 
2199
+ let reposition = false;
2200
+
2199
2201
  if ((tooltipOptions.titleFont || {}).family) {
2200
2202
  this._tooltip.$container.css('--chart-tooltip-font-family', tooltipOptions.titleFont.family);
2203
+
2204
+ reposition = true;
2201
2205
  }
2202
2206
 
2203
2207
  let maxLabelPrefSize = 0;
@@ -2208,6 +2212,12 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
2208
2212
 
2209
2213
  if (maxLabelPrefSize > 0) {
2210
2214
  this._tooltip.$container.css('--chart-tooltip-label-width', Math.min(maxLabelPrefSize, 120) + 'px');
2215
+
2216
+ reposition = true;
2217
+ }
2218
+
2219
+ if (reposition) {
2220
+ this._tooltip.position();
2211
2221
  }
2212
2222
  }
2213
2223