Browse Source

Fix #639: Footer resizing problem.

zhixin 10 years ago
parent
commit
147773159b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bootstrap-table.js

+ 4 - 0
src/bootstrap-table.js

@@ -1824,6 +1824,10 @@
         // TODO: it's probably better improving the layout than binding to scroll event
         // TODO: it's probably better improving the layout than binding to scroll event
         this.$tableBody.off('scroll').on('scroll', function () {
         this.$tableBody.off('scroll').on('scroll', function () {
             that.$tableHeader.scrollLeft($(this).scrollLeft());
             that.$tableHeader.scrollLeft($(this).scrollLeft());
+
+            if (this.options.showFooter && !this.options.cardView) {
+                that.$tableFooter.scrollLeft($(this).scrollLeft());
+            }
         });
         });
         that.trigger('post-header');
         that.trigger('post-header');
     };
     };