Permalink
Browse files

Fix issue with autoResize #6

  • Loading branch information...
Martin Hansen
Martin Hansen committed Jun 21, 2018
1 parent 76db36b commit f877c346085905b6b89bc65576a7bd7fc247a604
Showing with 2 additions and 3 deletions.
  1. +1 −2 package.json
  2. +1 −1 src/Plotly.vue
@@ -28,8 +28,7 @@
"license": "MIT",
"dependencies": {
"lodash": "^4.17.5",
"plotly.js": "^1.35.0",
"webpack": "^3.11.0"
"plotly.js": "^1.35.0"
},
"devDependencies": {
"@vue/test-utils": "^1.0.0-beta.12",
@@ -75,7 +75,7 @@ export default {
methods: {
initEvents() {
if (this.autoResize) {
this.__resizeListener = debounce(this.plot, 200)
this.__resizeListener = debounce(this.newPlot, 200)
window.addEventListener('resize', this.__resizeListener)
}

0 comments on commit f877c34

Please sign in to comment.