提交 b2e78140 编写于 作者: WodahsOrez's avatar WodahsOrez

导航分割bug

上级 1de5dae4
...@@ -452,11 +452,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -452,11 +452,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth; let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth;
let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight; let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight;
if(Object.is(this.showMode,'horizontal')){ if(Object.is(this.showMode,'horizontal')){
if(this.ctrlWidth){ if(this.ctrlWidth && containerWidth != 0){
this.split = this.ctrlWidth/containerWidth; this.split = this.ctrlWidth/containerWidth;
} }
}else{ }else{
if(this.ctrlHeight){ if(this.ctrlHeight && containerHeight != 0){
this.split = this.ctrlHeight/containerHeight; this.split = this.ctrlHeight/containerHeight;
} }
} }
......
...@@ -453,11 +453,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -453,11 +453,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth; let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth;
let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight; let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight;
if(Object.is(this.showMode,'horizontal')){ if(Object.is(this.showMode,'horizontal')){
if(this.ctrlWidth){ if(this.ctrlWidth && containerWidth != 0){
this.split = this.ctrlWidth/containerWidth; this.split = this.ctrlWidth/containerWidth;
} }
}else{ }else{
if(this.ctrlHeight){ if(this.ctrlHeight && containerHeight != 0){
this.split = this.ctrlHeight/containerHeight; this.split = this.ctrlHeight/containerHeight;
} }
} }
......
...@@ -335,11 +335,11 @@ ...@@ -335,11 +335,11 @@
let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth; let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth;
let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight; let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight;
if(Object.is(this.showMode,'horizontal')){ if(Object.is(this.showMode,'horizontal')){
if(this.ctrlWidth){ if(this.ctrlWidth && containerWidth != 0){
this.split = this.ctrlWidth/containerWidth; this.split = this.ctrlWidth/containerWidth;
} }
}else{ }else{
if(this.ctrlHeight){ if(this.ctrlHeight && containerHeight != 0){
this.split = this.ctrlHeight/containerHeight; this.split = this.ctrlHeight/containerHeight;
} }
} }
......
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
this.split = this.$store.getters.getViewSplit(this.viewUID); this.split = this.$store.getters.getViewSplit(this.viewUID);
}else{ }else{
let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth; let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth;
if(this.ctrlWidth){ if(this.ctrlWidth && containerWidth != 0){
this.split = this.ctrlWidth/containerWidth; this.split = this.ctrlWidth/containerWidth;
} }
this.$store.commit("setViewSplit",{viewUID:this.viewUID,viewSplit:this.split}); this.$store.commit("setViewSplit",{viewUID:this.viewUID,viewSplit:this.split});
......
...@@ -444,11 +444,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -444,11 +444,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth; let containerWidth:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetWidth;
let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight; let containerHeight:number = (document.getElementById("${ctrl.getCodeName()?lower_case}") as any).offsetHeight;
if(Object.is(this.showMode,'horizontal')){ if(Object.is(this.showMode,'horizontal')){
if(this.ctrlWidth){ if(this.ctrlWidth && containerWidth != 0){
this.split = this.ctrlWidth/containerWidth; this.split = this.ctrlWidth/containerWidth;
} }
}else{ }else{
if(this.ctrlHeight){ if(this.ctrlHeight && containerHeight != 0){
this.split = this.ctrlHeight/containerHeight; this.split = this.ctrlHeight/containerHeight;
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册