forked from mirror/MrDoc
优化在线表格文档自适应浏览器窗口高度
This commit is contained in:
parent
ced0cb11bf
commit
1f3d8365e0
@ -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 %}
|
Loading…
x
Reference in New Issue
Block a user