Fix compatibility with new menu beta.

This commit is contained in:
Trung0246
2024-07-22 00:35:06 -07:00
committed by GitHub
parent 7435053bc7
commit 5def4a34e9
+3 -3
View File
@@ -1475,8 +1475,8 @@ export function DOM_WIDGET(data_type, data_name, element, options = {}) {
Object.assign(this.element.style, {
transformOrigin: "0 0",
transform: new DOMMatrix().scaleSelf(transform.a, transform.d),
left: `${transform.a + transform.e}px`,
top: `${transform.d + transform.f}px`,
left: `${transform.a + transform.e + elem_rect.left}px`,
top: `${transform.d + transform.f + elem_rect.top}px`,
width: `${widget.flex.hold_draw[2]}px`,
height: `${widget.flex.hold_draw[3]}px`,
position: "absolute",
@@ -4814,4 +4814,4 @@ app.registerExtension({
// window.test = [
// 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
// ];
// ];