修复聊天窗高度

pull/30/head
taoshihan1991 4 years ago
parent 649c587d78
commit 2f59589e45

@ -15,11 +15,10 @@
html, html,
body { body {
height: 100%; height: 100%;
} background: rgb(245,245,245);
body {
} }
.chatContext{ .chatContext{
background: #fff;padding:0 10px; padding:0 10px;
width: 100%; width: 100%;
text-align: left; text-align: left;
position: relative; position: relative;
@ -69,10 +68,9 @@
.chatBoxMe .el-col-3{float: right;text-align: right;} .chatBoxMe .el-col-3{float: right;text-align: right;}
.chatBoxMe .chatUser{text-align: right} .chatBoxMe .chatUser{text-align: right}
.chatBoxMe .chatContent:after{left:auto;right: -10px;} .chatBoxMe .chatContent:after{left:auto;right: -10px;}
.chatArea{margin: 10px 0;}
.chatArea .el-textarea__inner{height: 100%;} .chatArea .el-textarea__inner{height: 100%;}
.chatTitle{height: 30px;line-height: 30px;color: #1989fa} .chatTitle{height: 30px;line-height: 30px;color: #1989fa}
.chatBoxSend{position: fixed;bottom: 0;left: 0;width: 100%;height: 70px;} .chatBoxSend{background: #fff;position: fixed;bottom: 0;left: 0;width: 100%;height: 67px;}
.chatBoxSendBtn{position: absolute;bottom: 1px;right: 2px;} .chatBoxSendBtn{position: absolute;bottom: 1px;right: 2px;}
.chatTime{text-align: center;color: #bbb;margin: 5px 0;font-size: 12px;} .chatTime{text-align: center;color: #bbb;margin: 5px 0;font-size: 12px;}
.chatTimeHide{display: none;} .chatTimeHide{display: none;}
@ -317,6 +315,9 @@
initCss(){ initCss(){
$(function () { $(function () {
$(".chatBox").css("max-height",$(window).height()); $(".chatBox").css("max-height",$(window).height());
if (top.location != location){
$(".chatBox").css("max-height",$(window).height()-65);
}
}); });
}, },
//心跳 //心跳

@ -211,7 +211,7 @@
shadeClose: true, shadeClose: true,
shade: false, shade: false,
maxmin: true, //开启最大化最小化按钮 maxmin: true, //开启最大化最小化按钮
area: ['660px', '600px'], area: ['550px', '520px'],
content: ['/chat_page','no'], content: ['/chat_page','no'],
end: function(){ end: function(){
$(".chatBtn").show(); $(".chatBtn").show();

Loading…
Cancel
Save