Closed ads692 closed 4 years ago
Hi, I wanted to check if there's a way to detect the context menu's cooridinate values for left and top based on the container it is placed in? Right now it seems to be calculating it only from the top layer window's values.
You can do this:
const menu = document.querySelector('.react-contextmenu') menu.getBoundingClientRect()
You can also pass a custom class and use that instead
Hi, I wanted to check if there's a way to detect the context menu's cooridinate values for left and top based on the container it is placed in? Right now it seems to be calculating it only from the top layer window's values.