1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

fix menu position (#6611)

This commit is contained in:
Michael An
2024-08-23 17:44:12 +08:00
committed by GitHub
parent b32b3fe904
commit 18a96ed607
3 changed files with 13 additions and 12 deletions

View File

@@ -129,7 +129,8 @@ class DirColumnView extends React.Component {
};
getMenuContainerSize = () => {
return window.getComputedStyle(this.viewModeContainer.current);
const { innerWidth, innerHeight } = window;
return { width: innerWidth, height: innerHeight };
};
render() {