NEZ-1203 style : project 添加小窗口下的横向滚动条
This commit is contained in:
@@ -615,12 +615,12 @@ export default {
|
||||
// getTopology(this.topologyIndex).fitView(30)
|
||||
},
|
||||
shrink (n) {
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
const domRect = document.getElementById('topology-canvas' + this.topologyIndex).getBoundingClientRect()
|
||||
getTopology(this.topologyIndex).canvasPos = domRect
|
||||
getTopology(this.topologyIndex).resize()
|
||||
getTopology(this.topologyIndex).centerView()
|
||||
},500)
|
||||
}, 500)
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -2114,7 +2114,7 @@ export default {
|
||||
})
|
||||
getTopology(this.topologyIndex).centerView()
|
||||
this.getNodesArr()
|
||||
}, 100)
|
||||
}, 500)
|
||||
},
|
||||
contextmenuNone () {
|
||||
this.contextmenu = {
|
||||
|
||||
@@ -52,13 +52,18 @@ export default {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
background: #f6f6f6;
|
||||
overflow-x: auto;
|
||||
.projectList{
|
||||
flex: 1;
|
||||
width: calc(50% - 10px);
|
||||
margin-right: 10px;
|
||||
min-width: 745px;
|
||||
}
|
||||
.projectTopo{
|
||||
flex: 1;
|
||||
width: calc(50% - 10px);
|
||||
margin-right: 10px;
|
||||
min-width: 435px;
|
||||
}
|
||||
.hide{
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user