浏览代码

fix(handsontable): fixed left 多出 4px

qinlaiqiao 5 年之前
父节点
当前提交
2e26f7d385
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      handsontable/src/3rdparty/walkontable/src/overlay/left.js

+ 2 - 1
handsontable/src/3rdparty/walkontable/src/overlay/left.js

@@ -163,7 +163,8 @@ class LeftOverlay extends Overlay {
     this.clone.wtTable.holder.style.height = overlayRootStyle.height;
 
     const tableWidth = outerWidth(this.clone.wtTable.TABLE);
-    overlayRootStyle.width = `${tableWidth === 0 ? tableWidth : tableWidth + 4}px`;
+    // overlayRootStyle.width = `${tableWidth === 0 ? tableWidth : tableWidth + 4}px`;
+    overlayRootStyle.width = `${tableWidth}px`;
   }
 
   /**