提交 a74b33e0 编写于 作者: guangjun.yang's avatar guangjun.yang

计算高度等

上级 4a00e667
...@@ -309,16 +309,16 @@ export default { ...@@ -309,16 +309,16 @@ export default {
refHeightId = "slidebar-container", refHeightId = "slidebar-container",
containerHeightId = "screenSet" containerHeightId = "screenSet"
) { ) {
let containerHeight = _this.containerHeight =
this.p_getElm(refHeightId).getBoundingClientRect().height - 15; _this.p_getElm(refHeightId).getBoundingClientRect().height - 15;
this.p_getElm(containerHeightId).style.height = _this.p_getElm(containerHeightId).style.height =
containerHeight - cMinusHeight + "px"; containerHeight - cMinusHeight + "px";
console.log('containerHeight', containerHeight); console.log('containerHeight', containerHeight);
window.onresize = function() { window.onresize = function() {
console.log('containerHeight2', containerHeight); console.log('containerHeight2', containerHeight);
containerHeight = _this.containerHeight =
this.p_getElm(refHeightId).getBoundingClientRect().height - 15; _this.p_getElm(refHeightId).getBoundingClientRect().height - 15;
this.p_getElm(containerHeightId).style.height = _this.p_getElm(containerHeightId).style.height =
containerHeight - cMinusHeight + "px"; containerHeight - cMinusHeight + "px";
}; };
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册