From f16a9620904025c3dfcb41b5be90ea5a21bab8f0 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Wed, 15 Apr 2020 09:29:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/vcCore/vcFramework.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/vcCore/vcFramework.js b/public/vcCore/vcFramework.js index 646d4551d..9e450f062 100644 --- a/public/vcCore/vcFramework.js +++ b/public/vcCore/vcFramework.js @@ -1790,7 +1790,7 @@ vc 校验 工具类 -method //全屏处理 这个后面可以关掉 (function (vcFramework) { - window.onresize = () => { + _fix_height = () => { //只要窗口高度发生变化,就会进入这里面,在这里就可以写,回到聊天最底部的逻辑 let _vcPageHeight = document.getElementsByClassName('vc-page-height')[0]; //浏览器可见高度 @@ -1803,6 +1803,12 @@ vc 校验 工具类 -method _vcPageHeight.style.minHeight = _scollHeight + 'px'; console.log('是否设置高度', _vcPageHeight.style.minHeight); } + + setTimeout(function(){ + //if (!$("body").hasClass('body-small')) { + fix_height(); + //} + }) })(window.vcFramework);