NEZ-1200 fix: Project topo 全屏后,将左侧菜单栏收缩后,topo 右侧遮挡,没有全屏
This commit is contained in:
@@ -613,11 +613,22 @@ export default {
|
|||||||
getTopology(this.topologyIndex).resize()
|
getTopology(this.topologyIndex).resize()
|
||||||
getTopology(this.topologyIndex).centerView()
|
getTopology(this.topologyIndex).centerView()
|
||||||
// getTopology(this.topologyIndex).fitView(30)
|
// getTopology(this.topologyIndex).fitView(30)
|
||||||
|
},
|
||||||
|
shrink (n) {
|
||||||
|
setTimeout(()=>{
|
||||||
|
const domRect = document.getElementById('topology-canvas' + this.topologyIndex).getBoundingClientRect()
|
||||||
|
getTopology(this.topologyIndex).canvasPos = domRect
|
||||||
|
getTopology(this.topologyIndex).resize()
|
||||||
|
getTopology(this.topologyIndex).centerView()
|
||||||
|
},500)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
topoScreen () {
|
topoScreen () {
|
||||||
return this.$store.getters.getShowTopoScreen
|
return this.$store.getters.getShowTopoScreen
|
||||||
|
},
|
||||||
|
shrink () {
|
||||||
|
return this.$store.getters.getIsShrink
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|||||||
Reference in New Issue
Block a user