diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 9401dc5965..11dde12d3f 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -1366,6 +1366,8 @@ export function getTooltipContainer(id) { let wrapperDom = document.getElementById(G2_TOOLTIP_WRAPPER) if (!wrapperDom) { wrapperDom = document.createElement('div') + wrapperDom.style.position = 'absolute' + wrapperDom.style.zIndex = '9999' wrapperDom.id = G2_TOOLTIP_WRAPPER document.body.appendChild(wrapperDom) }