Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-05-29 21:21:17 +06:00 committed by GitHub
parent 15d3a2baab
commit 4d12b831ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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