mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-07-09 07:47:10 +08:00
fix help popup offset with the new interface
This commit is contained in:
parent
7e7a73191c
commit
11c2155138
@ -257,12 +257,13 @@ const create_documentation_stylesheet = () => {
|
|||||||
|
|
||||||
const scale = new DOMMatrix()
|
const scale = new DOMMatrix()
|
||||||
.scaleSelf(transform.a, transform.d);
|
.scaleSelf(transform.a, transform.d);
|
||||||
|
const bcr = app.canvas.canvas.getBoundingClientRect()
|
||||||
|
|
||||||
const styleObject = {
|
const styleObject = {
|
||||||
transformOrigin: '0 0',
|
transformOrigin: '0 0',
|
||||||
transform: scale,
|
transform: scale,
|
||||||
left: `${transform.a + transform.e}px`,
|
left: `${transform.a + bcr.x + transform.e}px`,
|
||||||
top: `${transform.d + transform.f}px`,
|
top: `${transform.d + bcr.y + transform.f}px`,
|
||||||
};
|
};
|
||||||
Object.assign(docElement.style, styleObject);
|
Object.assign(docElement.style, styleObject);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user