1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

repair upload bug for ie

This commit is contained in:
shanshuirenjia
2019-06-04 10:13:33 +08:00
parent 9fada2c2ad
commit ffe2acf5e6
2 changed files with 4 additions and 4 deletions

View File

@@ -55,9 +55,9 @@ class DirOperationToolbar extends React.Component {
toggleOperationMenu = (e) => {
e.nativeEvent.stopImmediatePropagation();
let targetRect = e.target.getClientRects()[0];
let left = targetRect.x;
let top = targetRect.y + targetRect.height;
let targetRect = e.target.getBoundingClientRect();
let left = targetRect.left;
let top = targetRect.bottom;
let style = {position: 'fixed', display: 'block', left: left, top: top};
this.setState({operationMenuStyle: style});
}