popup.rect get & set

This commit is contained in:
tsanie committed 2023-04-19 09:27:29 +08:00
1 parent 046ed387e6
commit 92a360cbc2
5 files changed
+54 -17

No files matched your search

+1 -1
View File
@@ -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;