popup.rect get & set
This commit is contained in:
@ -23,7 +23,7 @@ function setTooltip(container, content, flag = false, parent = null) {
|
||||
createElement('div', 'tooltip-curtain tooltip-color'),
|
||||
createElement('div', cnt => {
|
||||
cnt.className = 'tooltip-content';
|
||||
if (content instanceof HTMLElement) {
|
||||
if (content instanceof Element) {
|
||||
cnt.appendChild(content);
|
||||
} else {
|
||||
cnt.innerText = content;
|
||||
|
Reference in New Issue
Block a user