Fix HMR and backtrack for SFC support now that PHPStorm supports them

Of course I wasted forever migrating OUT of SFCs only to go back to them.
This commit is contained in:
Dane Everitt 2019-02-09 19:43:11 -08:00
parent 626a63ddd9
commit 761704408e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 149 additions and 17 deletions

View file

@ -50,7 +50,7 @@ export default Vue.component('file-row', {
this.contextMenuVisible = true;
const menuWidth = (this.$refs.contextMenu as VueType).$el.offsetWidth;
const menuWidth = (this.$refs.contextMenu as VueType).$el.clientWidth;
const positionElement = e.clientX - Math.round(menuWidth / 2);
(this.$refs.contextMenu as VueType).$el.setAttribute('style', `left: ${positionElement}; top: ${e.clientY}`);