Răsfoiți Sursa

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

zhangyuhan 1 an în urmă
părinte
comite
af75b300f6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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);
       }