This commit is contained in:
Dane Everitt 2018-08-18 22:03:38 -07:00
parent cf32742132
commit 04f56ffe99
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -17,7 +17,6 @@
<script> <script>
import * as Helpers from './../../../helpers/index'; import * as Helpers from './../../../helpers/index';
import { FileTextIcon, Link2Icon } from 'vue-feather-icons'; import { FileTextIcon, Link2Icon } from 'vue-feather-icons';
import isObject from 'lodash/isObject';
import FileManagerContextMenu from './FileManagerContextMenu'; import FileManagerContextMenu from './FileManagerContextMenu';
export default { export default {
@ -67,7 +66,7 @@
const menuWidth = this.$refs.contextMenu.$el.offsetWidth; const menuWidth = this.$refs.contextMenu.$el.offsetWidth;
const positionElement = e.clientX - Math.round(menuWidth / 2); const positionElement = e.clientX - Math.round(menuWidth / 2);
this.$refs.contextMenu.$el.style = `left: ${positionElement}; top: ${e.clientY}`; this.$refs.contextMenu.$el.style = `left: ${positionElement}; top: ${e.clientY}`;
}, },