浏览代码

remove width and height attribute in fullscreen mode (#4834)

Co-authored-by: Dennis Hernández <dennishernandezvargas@gmail.com>
Dustin Utecht 5 年之前
父节点
当前提交
3db88c585c
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/bootstrap-table.js

+ 4 - 1
src/bootstrap-table.js

@@ -2619,7 +2619,10 @@ class BootstrapTable {
       }
     }
 
-    if (this.options.height) {
+    if (this.$container.hasClass('fullscreen')) {
+      this.$tableContainer.css('height', '')
+      this.$tableContainer.css('width', '')
+    } else if (this.options.height) {
       const toolbarHeight = this.$toolbar.outerHeight(true)
       const paginationHeight = this.$pagination.outerHeight(true)
       const height = this.options.height - toolbarHeight - paginationHeight