fix 80074
This commit is contained in:
@@ -98,7 +98,6 @@ export default {
|
|||||||
this.isLoadEnd = true
|
this.isLoadEnd = true
|
||||||
const dom = document.getElementById(this.domId)
|
const dom = document.getElementById(this.domId)
|
||||||
this.observer = new ResizeObserver(this.handleResize)
|
this.observer = new ResizeObserver(this.handleResize)
|
||||||
console.log(this.observer)
|
|
||||||
this.observer.observe(dom, { box: 'border-box' })
|
this.observer.observe(dom, { box: 'border-box' })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -337,6 +336,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.graph.changeSize(document.getElementById(this.domId).clientWidth, document.getElementById(this.domId).clientHeight)
|
this.graph.changeSize(document.getElementById(this.domId).clientWidth, document.getElementById(this.domId).clientHeight)
|
||||||
|
this.graph.fitCenter()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
|
|||||||
Reference in New Issue
Block a user