Set position to fixed

pull/5370/head
ioedeveloper 4 years ago
parent 9a7f15b1d2
commit 196e25d14c
  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() const boundary = menuItemsContainer.getBoundingClientRect()
if (boundary.bottom > (window.innerHeight || document.documentElement.clientHeight)) { if (boundary.bottom > (window.innerHeight || document.documentElement.clientHeight)) {
menuItemsContainer.style.position = 'absolute' menuItemsContainer.style.position = 'fixed'
menuItemsContainer.style.bottom = '10px' menuItemsContainer.style.bottom = '10px'
menuItemsContainer.style.top = null menuItemsContainer.style.top = null
} }

Loading…
Cancel
Save