From 199ced0aafa9aa532c3f6d21024ed5eb17a56db4 Mon Sep 17 00:00:00 2001 From: xile611 Date: Fri, 27 Dec 2024 15:55:53 +0800 Subject: [PATCH] fix: fix error update of dom tooltip when update theme, fix #3619 --- .../components/tooltip-handler/dom-tooltip-handler.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/vchart/src/plugin/components/tooltip-handler/dom-tooltip-handler.ts b/packages/vchart/src/plugin/components/tooltip-handler/dom-tooltip-handler.ts index 12f5a289f..0d76e029f 100644 --- a/packages/vchart/src/plugin/components/tooltip-handler/dom-tooltip-handler.ts +++ b/packages/vchart/src/plugin/components/tooltip-handler/dom-tooltip-handler.ts @@ -371,6 +371,14 @@ export class DomTooltipHandler extends BaseTooltipHandler { reInit() { super.reInit(); this._initStyle(); + if (this._rootDom) { + setStyleToDom(this._rootDom, this._domStyle.panel); + } + + if (this.getVisibility()) { + this._updateDomStringByCol(this._tooltipActual); + this._updateDomStyle('height'); + } } protected _updatePosition({ x, y }: ITooltipPositionActual) {