fix: 编辑场景滑动滚动条控制台报错
This commit is contained in:
parent
cab191ae2a
commit
74de5e848a
|
@ -1252,12 +1252,14 @@ export default {
|
|||
handleScroll() {
|
||||
let stepInfo = this.$refs.stepInfo;
|
||||
let debugHeader = this.$refs.debugHeader;
|
||||
let originWidth = debugHeader.clientWidth;
|
||||
if (stepInfo.getBoundingClientRect().top <= 178) {
|
||||
this.isTop = true;
|
||||
debugHeader.style.width = originWidth + 'px';
|
||||
} else {
|
||||
this.isTop = false;
|
||||
if (debugHeader) {
|
||||
let originWidth = debugHeader.clientWidth;
|
||||
if (stepInfo.getBoundingClientRect().top <= 178) {
|
||||
this.isTop = true;
|
||||
debugHeader.style.width = originWidth + 'px';
|
||||
} else {
|
||||
this.isTop = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue