Commit 286f02b5 authored by ioedeveloper's avatar ioedeveloper

Set position to fixed

parent dbddcce4
...@@ -16,7 +16,7 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) => ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment