Browse Source

Fix #39: card view display error.

zhixin 11 years ago
parent
commit
5a9cb6b827
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/bootstrap-table.js

+ 5 - 1
src/bootstrap-table.js

@@ -855,6 +855,10 @@
             this.$container.find('.fixed-table-container').css('height', height + 'px');
             this.$container.find('.fixed-table-container').css('height', height + 'px');
         }
         }
 
 
+        if (this.options.cardView) {
+            return;
+        }
+
         if (this.options.showHeader) {
         if (this.options.showHeader) {
             this.$header_ = this.$header.clone(true);
             this.$header_ = this.$header.clone(true);
             this.$body_ = this.$body.clone(true);
             this.$body_ = this.$body.clone(true);
@@ -866,7 +870,7 @@
                 .append(this.$header_, this.$body_);
                 .append(this.$header_, this.$body_);
         }
         }
 
 
-        if (this.options.height && this.options.showHeader && !this.options.cardView) {
+        if (this.options.height && this.options.showHeader) {
             this.$container.find('.fixed-table-container').css('padding-bottom', '38px')
             this.$container.find('.fixed-table-container').css('padding-bottom', '38px')
         }
         }
     };
     };