ソースを参照

Fixed stickyHeaderOffsetY option cannot work

zhixin 4 年 前
コミット
d656f1d748

+ 1 - 1
src/extensions/sticky-header/bootstrap-table-sticky-header.js

@@ -108,7 +108,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
         stickyHeaderOffsetLeft = 0
         stickyHeaderOffsetRight = 0
       }
-      this.$stickyContainer.css('top', `${this.options.stickyHeaderOffsetY}`)
+      this.$stickyContainer.css('top', `${this.options.stickyHeaderOffsetY}px`)
       this.$stickyContainer.css('left', `${stickyHeaderOffsetLeft}`)
       this.$stickyContainer.css('right', `${stickyHeaderOffsetRight}`)
       // create scrollable container for header