瀏覽代碼

fix(handsontable): 滚动条没同步导致冻结列错位显示

zhangweicheng 4 年之前
父節點
當前提交
389adae2e2
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      handsontable/package.json
  2. 1 0
      handsontable/src/3rdparty/walkontable/src/table.js

+ 1 - 1
handsontable/package.json

@@ -10,7 +10,7 @@
     "url": "https://github.com/handsontable/handsontable/issues"
     "url": "https://github.com/handsontable/handsontable/issues"
   },
   },
   "author": "Handsoncode <hello@handsontable.com>",
   "author": "Handsoncode <hello@handsontable.com>",
-  "version": "6.3.11",
+  "version": "6.3.12",
   "browser": "dist/handsontable.js",
   "browser": "dist/handsontable.js",
   "main": "commonjs/index.js",
   "main": "commonjs/index.js",
   "module": "es/index.js",
   "module": "es/index.js",

+ 1 - 0
handsontable/src/3rdparty/walkontable/src/table.js

@@ -271,6 +271,7 @@ class Table {
       }
       }
 
 
       wtOverlays.leftOverlay.resetFixedPosition();
       wtOverlays.leftOverlay.resetFixedPosition();
+      syncScroll = true; // 同步滚动条,当下拉到表格最后时,展开树节点,或者在编辑状态 点击到不是是冻结列的地方,显示错位问题
 
 
       if (wtOverlays.topLeftCornerOverlay) {
       if (wtOverlays.topLeftCornerOverlay) {
         wtOverlays.topLeftCornerOverlay.resetFixedPosition();
         wtOverlays.topLeftCornerOverlay.resetFixedPosition();