优化在线表格文档自适应浏览器窗口高度

This commit is contained in:
zmister 2022-05-22 09:45:06 +08:00
parent ced0cb11bf
commit 1f3d8365e0

View File

@ -394,4 +394,13 @@
updateDocShare(share_data);
})
</script>
<!-- 在线表格文档根据窗口高度调整表格高度 -->
{% if doc.editor_mode == 4 %}
<script>
var lucksheet_height = $(window).height() - $(".doc-header").height() - $(".doc-info").height() - 30;
$("#luckysheet").height(lucksheet_height);
</script>
{% endif %}
{% endblock %}