This commit is contained in:
xuhe@fangjia.com
2018-04-13 19:02:52 +08:00
parent 5c69f7272a
commit d1a8eea4db
4 changed files with 87 additions and 7 deletions
+12
View File
@@ -119,6 +119,18 @@ $(".check").on("click", function () {
function openView() {
clicked(BASE_PATH + '/user/agreement',true)
}
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight;
window.onresize=function(){
//软键盘弹起与隐藏 都会引起窗口的高度发生变化
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight;
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了
plus.webview.currentWebview().setStyle({
height:originalHeight
});
}
}
</script>
</body>