浏览代码

remove real height function.

zhixin 11 年之前
父节点
当前提交
ca7e5b7ecc
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      src/bootstrap-table.js

+ 1 - 8
src/bootstrap-table.js

@@ -31,13 +31,6 @@
         return '';
     };
 
-    // get the element real height
-    var realHeight = function($el) {
-        var height = $el.wrap('<div style="border: 1px solid transparent;"></div>').parent().outerHeight(true);
-        $el.unwrap();
-        return height - 2;
-    };
-
     // BOOTSTRAP TABLE CLASS DEFINITION
     // ======================
 
@@ -369,7 +362,7 @@
 
     BootstrapTable.prototype.initPagination = function() {
         this.$pagination = this.$container.find('.fixed-table-pagination');
-        
+
         if (!this.options.pagination) {
             return;
         }