浏览代码

HUE-4953 [core] Scrolling past 100 records on the table hides the top left cell of the fixed header

Enrico Berti 9 年之前
父节点
当前提交
c4a1e16fb7
共有 1 个文件被更改,包括 3 次插入9 次删除
  1. 3 9
      desktop/core/src/desktop/static/desktop/js/jquery.tableextender2.js

+ 3 - 9
desktop/core/src/desktop/static/desktop/js/jquery.tableextender2.js

@@ -263,15 +263,9 @@
       firstColTopPos = topPos;
     }
     self.firstColumn.scrollTop(self.$mainScrollable.scrollTop());
-    if (self.lastFirstColTop !== firstColTopPos) {
-      self.lastFirstColTop = firstColTopPos;
-      self.firstColumn.css("top", firstColTopPos + "px");
-    }
-    if (self.lastTopPos !== topPos) {
-      self.lastTopPos = topPos;
-      self.headerRowContainer.css("top", topPos + "px");
-      self.firstColumnTopCell.css("top", topPos + "px");
-    }
+    self.firstColumn.css("top", firstColTopPos + "px");
+    self.headerRowContainer.css("top", topPos + "px");
+    self.firstColumnTopCell.css("top", topPos + "px");
   };
 
   Plugin.prototype.drawHeader = function () {