From 4d12b831ff5f2d3ed5b1e0221ee5ddf04df6f0fe Mon Sep 17 00:00:00 2001
From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
Date: Sun, 29 May 2022 21:21:17 +0600
Subject: [PATCH] 1905 fix (#1907)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
---
 .../src/components/ClassAttributes.svelte              | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/plugins/setting-resources/src/components/ClassAttributes.svelte b/plugins/setting-resources/src/components/ClassAttributes.svelte
index 528dde9fd0..ee84590ed3 100644
--- a/plugins/setting-resources/src/components/ClassAttributes.svelte
+++ b/plugins/setting-resources/src/components/ClassAttributes.svelte
@@ -20,7 +20,6 @@
     Action,
     CircleButton,
     Component,
-    eventToHTMLElement,
     IconAdd,
     IconDelete,
     IconEdit,
@@ -95,7 +94,14 @@
         }
       }
     ]
-    showPopup(Menu, { actions }, eventToHTMLElement(ev), () => {})
+    showPopup(
+      Menu,
+      { actions },
+      {
+        getBoundingClientRect: () => DOMRect.fromRect({ width: 1, height: 1, x: ev.clientX, y: ev.clientY })
+      },
+      () => {}
+    )
   }
   function getRefClassTo (value: Type<Type<any>>): IntlString {
     return client.getHierarchy().getClass((value as RefTo<Doc>).to).label