sync
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user