Browse Source

Fixed an issue with vertical scrolling event

Dustin Utecht 5 years ago
parent
commit
3090e17710
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/extensions/sticky-header/bootstrap-table-sticky-header.js

+ 5 - 0
src/extensions/sticky-header/bootstrap-table-sticky-header.js

@@ -56,6 +56,11 @@ $.BootstrapTable = class extends $.BootstrapTable {
       .on('scroll', () => this.renderStickyHeader())
   }
 
+  horizontalScroll () {
+    super.horizontalScroll()
+    this.$tableBody.on('scroll', () => this.matchPositionX())
+  }
+
   renderStickyHeader () {
     const that = this
     this.$stickyHeader = this.$header.clone(true, true)