fix help popup offset with the new interface

This commit is contained in:
kijai 2024-08-18 15:11:26 +03:00
parent 7e7a73191c
commit 11c2155138

View File

@ -257,12 +257,13 @@ const create_documentation_stylesheet = () => {
const scale = new DOMMatrix()
.scaleSelf(transform.a, transform.d);
const bcr = app.canvas.canvas.getBoundingClientRect()
const styleObject = {
transformOrigin: '0 0',
transform: scale,
left: `${transform.a + transform.e}px`,
top: `${transform.d + transform.f}px`,
left: `${transform.a + bcr.x + transform.e}px`,
top: `${transform.d + bcr.y + transform.f}px`,
};
Object.assign(docElement.style, styleObject);
}