@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.
|
@@ -2202,7 +2202,9 @@ class ChartJsRenderer extends _index__WEBPACK_IMPORTED_MODULE_0__.AbstractChartR
|
|
|
2202
2202
|
|
|
2203
2203
|
let maxLabelPrefSize = 0;
|
|
2204
2204
|
|
|
2205
|
-
this._tooltip.$container.find('label').each((idx, elem) =>
|
|
2205
|
+
this._tooltip.$container.find('label').each((idx, elem) => {
|
|
2206
|
+
maxLabelPrefSize = Math.max(maxLabelPrefSize, _eclipse_scout_core__WEBPACK_IMPORTED_MODULE_2__.graphics.prefSize(jquery__WEBPACK_IMPORTED_MODULE_4___default()(elem)).width);
|
|
2207
|
+
});
|
|
2206
2208
|
|
|
2207
2209
|
if (maxLabelPrefSize > 0) {
|
|
2208
2210
|
this._tooltip.$container.css('--chart-tooltip-label-width', Math.min(maxLabelPrefSize, 120) + 'px');
|