Skip to content

Commit f877c34

Browse files
author
Martin Hansen
committed
Fix issue with autoResize #6
1 parent 76db36b commit f877c34

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"license": "MIT",
2929
"dependencies": {
3030
"lodash": "^4.17.5",
31-
"plotly.js": "^1.35.0",
32-
"webpack": "^3.11.0"
31+
"plotly.js": "^1.35.0"
3332
},
3433
"devDependencies": {
3534
"@vue/test-utils": "^1.0.0-beta.12",

src/Plotly.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
methods: {
7676
initEvents() {
7777
if (this.autoResize) {
78-
this.__resizeListener = debounce(this.plot, 200)
78+
this.__resizeListener = debounce(this.newPlot, 200)
7979
window.addEventListener('resize', this.__resizeListener)
8080
}
8181

0 commit comments

Comments
 (0)