Set position to fixed

pull/966/head
ioedeveloper 4 years ago
parent dbddcce41a
commit 286f02b563
  1. 2
      libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx

@ -16,7 +16,7 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
const boundary = menuItemsContainer.getBoundingClientRect()
if (boundary.bottom > (window.innerHeight || document.documentElement.clientHeight)) {
menuItemsContainer.style.position = 'absolute'
menuItemsContainer.style.position = 'fixed'
menuItemsContainer.style.bottom = '10px'
menuItemsContainer.style.top = null
}

Loading…
Cancel
Save