fix: Right-click object menu displays partially off-screen (#4572) (#4631)

This commit is contained in:
zsviczian
2022-01-23 17:28:38 +01:00
committed by GitHub
parent 24bf4cb5fb
commit c009e03c8e
2 changed files with 15 additions and 6 deletions

View File

@@ -37,6 +37,10 @@ const ContextMenu = ({
top={top}
left={left}
fitInViewport={true}
offsetLeft={appState.offsetLeft}
offsetTop={appState.offsetTop}
viewportWidth={appState.width}
viewportHeight={appState.height}
>
<ul
className="context-menu"