ソースを参照

Fix #39: card view display error.

zhixin 11 年 前
コミット
5a9cb6b827
1 ファイル変更5 行追加1 行削除
  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');
         }
 
+        if (this.options.cardView) {
+            return;
+        }
+
         if (this.options.showHeader) {
             this.$header_ = this.$header.clone(true);
             this.$body_ = this.$body.clone(true);
@@ -866,7 +870,7 @@
                 .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')
         }
     };