fix: 开多个窗口编辑场景样式错乱

This commit is contained in:
chenjianxing 2021-07-07 16:39:46 +08:00 committed by jianxing
parent a36ea9d67a
commit 344aca268d
1 changed files with 3 additions and 1 deletions

View File

@ -1272,7 +1272,9 @@ export default {
let originWidth = debugHeader.clientWidth;
if (stepInfo.getBoundingClientRect().top <= 178) {
this.isTop = true;
debugHeader.style.width = originWidth + 'px';
if (originWidth > 0) {
debugHeader.style.width = originWidth + 'px';
}
} else {
this.isTop = false;
}