fix: 🐛 doc widget sidebar offset in the new ui

This commit is contained in:
Mel Massadian
2024-08-18 14:26:02 +02:00
parent a825504bdd
commit 81b3bc1651
+2 -2
View File
@@ -917,8 +917,8 @@ export const addDocumentation = (
Object.assign(docElement.style, {
transformOrigin: '0 0',
transform: scale,
left: `${transform.a + transform.e}px`,
top: `${transform.d + transform.f}px`,
left: `${transform.a + rect.x + transform.e}px`,
top: `${transform.d + rect.y + transform.f}px`,
width: this.docPos ? this.docPos.width : `${this.size[0] * 1.5}px`,
height: this.docPos?.height,
})