This commit is contained in:
2024-06-07 16:15:42 +08:00
parent ea7f4f538a
commit 614a983aa8
15 changed files with 834 additions and 464 deletions

View File

@ -1,5 +1,6 @@
import './css/tooltip.scss';
import { createElement } from "../functions";
import { global } from '../utility';
const pointerHeight = 12;
@ -98,7 +99,7 @@ export function setTooltip(container, content, flag = false, parent = null) {
let lastWidth = p.clientWidth;
let lastHeight = p.clientHeight;
while (p != null) {
const overflow = window.getComputedStyle(p).overflow;
const overflow = global.getComputedStyle(p).overflow;
if (overflow !== 'visible') {
break;
}