Virtual whiteboard for sketching hand-drawn like diagrams
fix: Context menu positioning when component has offsets (#5520)
zsviczianaca284057da6
diff --git a/src/components/Popover.tsx b/src/components/Popover.tsxindex 630fee1c82..9a046599bc 100644--- a/src/components/Popover.tsx+++ b/src/components/Popover.tsx@@ -69,7 +69,6 @@ export const Popover = ({if (fitInViewport && popoverRef.current) {const element = popoverRef.current;const { x, y, width, height } = element.getBoundingClientRect();- const { innerWidth: viewportWidth, innerHeight: viewportHeight } = window;//Position correctly when clicked on rightmost part or the bottom part of viewportif (x + width - offsetLeft > viewportWidth) {