测试软键盘遮挡问题

pull/23/head
taoshihan1991 3 years ago
parent baba0ad38b
commit 5e6e787a16

@ -76,5 +76,5 @@
var LANG=checkLang();
</script>
<script src="/static/js/chat-lang.js?v=1.0.0"></script>
<script src="/static/js/chat-page.js?v=1.0.1"></script>
<script src="/static/js/chat-page.js?v=1.0.3"></script>
</html>

@ -318,11 +318,12 @@ new Vue({
$(window).resize(function(){
var docheight = $(window).height(); /*唤起键盘时当前窗口高度*/
console.log(docheight,windheight);
if(docheight < windheight){ /*当唤起键盘高度小于未唤起键盘高度时执行*/
$(".chatBoxSend").css("position","static");
}else{
$(".chatBoxSend").css("position","fixed");
}
_this.scrollBottom();
// if(docheight < windheight){ /*当唤起键盘高度小于未唤起键盘高度时执行*/
// $(".chatBoxSend").css("position","static");
// }else{
// $(".chatBoxSend").css("position","fixed");
// }
});
});
},

Loading…
Cancel
Save