瀏覽代碼

fix: 服务器生成时边框异常数值调整

zhangyuhan 1 年之前
父節點
當前提交
af75b300f6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/bigmember_pc/src/views/download-pdf/utils/index.js

+ 1 - 1
apps/bigmember_pc/src/views/download-pdf/utils/index.js

@@ -280,7 +280,7 @@ class ComputedPageEdge {
     $(".inset-fill-height-box.inset-is-table").each(function () {
       try {
         const c = $(this)[0].getBoundingClientRect()
-        $(document.body).append(`<div class="inset-is-table--fix" style="top: ${Math.floor(c.top - 1)}px;left: ${c.left - 2}px;width: ${c.width + 4}px;height: ${Math.floor(c.height - 2)}px;"></div>`)
+        $(document.body).append(`<div class="inset-is-table--fix" style="top: ${Math.floor(c.top - 2)}px;left: ${c.left - 2}px;width: ${c.width + 4}px;height: ${Math.floor(c.height - 3)}px;"></div>`)
       } catch (e) {
         console.warn(e);
       }