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

计算高度

上级 1906e4f9
...@@ -199,7 +199,8 @@ import { ...@@ -199,7 +199,8 @@ import {
import * as commonUtil from "@/utils/utils"; import * as commonUtil from "@/utils/utils";
import { getPicaKFAccid, getPhomeDemain } from "@/utils"; import { getPicaKFAccid, getPhomeDemain } from "@/utils";
import UserInfo from "@/components/IM/user-info.vue"; import UserInfo from "@/components/IM/user-info.vue";
const CONTAINER_HEIGHT = 700; const CONTAINER_HEIGHT = 300;
// const CONTAINER_HEIGHT = 700;
let forwardMsgIntervalId = null; let forwardMsgIntervalId = null;
let sessionIntervalId = null; let sessionIntervalId = null;
let continueIntervalId = null; let continueIntervalId = null;
...@@ -298,7 +299,7 @@ export default { ...@@ -298,7 +299,7 @@ export default {
}, },
mounted() { mounted() {
this.resizeHeight(); // this.resizeHeight();
}, },
methods: { methods: {
...@@ -319,7 +320,7 @@ export default { ...@@ -319,7 +320,7 @@ export default {
_this.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"; _this.containerHeight - cMinusHeight + "px";
}; };
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册